Bug#283487: libservlet2.2-java: FTBFS: Compiler errors
Loïc Minier
Loïc Minier , 283487@bugs.debian.org
Sat Jan 8 10:26:21 2005
--+HP7ph2BbKc20aGI
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
tag 283487 + patch
thanks
Hi,
Daniel Schepler <schepler@math.berkeley.edu> - Mon, Nov 29, 2004:
> [javac] Found 3 semantic errors compiling "/tmp/buildd/libservlet2.=
2-java-3.3.1a/src/share/javax/servlet/http/HttpServlet.java":
>=20
> [javac] 944. public void setStatus(int sc, String sm)
> [javac] ^--------------------------^
> [javac] *** Semantic Error: The overridden method "void setStatus(i=
nt sc, java.lang.String sm);" is deprecated in type "javax.servlet.http.H=
ttpServletResponse".
This is a bug in jikes, fixed in upstream CVS. I've filed a Debian bug
concerning that, but I'm still waiting for the bug-id.
Attached patch (-p2, warning, changelog updated for NMU too) is a
workaround which deactivates deprecation checks altogether in the first
<javac ... /> call of build.xml. Such checks should be reactivated in
the future.
Regards,
--=20
Lo=EFc Minier <lool@dooz.org>
--+HP7ph2BbKc20aGI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="libservlet2.2-java-2_jikes-deprecation-workaround.patch"
diff -urN lib3/libservlet2.2-java-3.3.1a/build.xml lib4/libservlet2.2-java-3.3.1a/build.xml
--- lib3/libservlet2.2-java-3.3.1a/build.xml 2001-10-22 00:25:23.000000000 +0200
+++ lib4/libservlet2.2-java-3.3.1a/build.xml 2005-01-08 15:39:29.000000000 +0100
@@ -28,7 +28,7 @@
<!-- ======================== Compile Classes ========================== -->
<target name="compile" depends="prepare">
<javac srcdir="src/share" destdir="${servletapi.build}/classes"
- debug="on" optimize="on" deprecation="on"/>
+ debug="on" optimize="on" deprecation="off"/>
<copy todir="${servletapi.build}/classes">
<fileset dir="src/share">
diff -urN lib3/libservlet2.2-java-3.3.1a/debian/changelog lib4/libservlet2.2-java-3.3.1a/debian/changelog
--- lib3/libservlet2.2-java-3.3.1a/debian/changelog 2005-01-08 13:30:02.000000000 +0100
+++ lib4/libservlet2.2-java-3.3.1a/debian/changelog 2005-01-08 16:09:48.000000000 +0100
@@ -1,3 +1,13 @@
+libservlet2.2-java (3.3.1a-3) unstable; urgency=high
+
+ * NMU
+ * urgency high for Sarge targetted RC bugfix
+ * workaround breakage in jikes where the compilation of an implementation
+ of an interface with deprecated functions would cause an error
+ (closes: #283487)
+
+ -- Loic Minier <lool@dooz.org> Sat, 8 Jan 2005 15:47:23 +0100
+
libservlet2.2-java (3.3.1a-2) unstable; urgency=low
* Build depend on libant1.5-java (>= 1.5.4-3) (closes: #211459)
--+HP7ph2BbKc20aGI--