Bug#283487: can't build deprecated implementations of interfaces

Loïc Minier Loïc Minier , 283487@bugs.debian.org
Sat Jan 8 10:26:14 2005


Package: jikes
Version: 1:1.22-1
Severity: important

     Hi,

 Since 1.22, jikes fails to build implementations of interfaces with
 deprecated methods.  This might cause FTBFS on packages (see #283487
 for an example).

 This is fixed in CVS.

 According to this page:
 <http://java.sun.com/j2se/1.4.2/docs/guide/misc/deprecation/deprecated.h=
tml>
 ... it would be nice to have a "-strict" option to promote warnings to
 errors, it seems that as soon as you use -deprecation in something
 like:
bee% jikes -deprecation -d /home/lool/tmp/libservlet2.2-java2/libservlet2.2-java-3.3.1a/build/servletapi/classes -classpath /home/lool/tmp/libservlet2.2-java2/libservlet2.2-java-3.3.1a/build/servletapi/classes:/usr/share/ant1.5/lib/ant.jar:/usr/share/java/xerces.jar:/usr/lib/kaffe/pthreads/jre/lib/rt.jar:/home/lool/tmp/libservlet2.2-java2/libservlet2.2-java-3.3.1a/src/share -g -nowarn -O /home/lool/tmp/libservlet2.2-java2/libservlet2.2-java-3.3.1a/src/share/javax/servlet/http/HttpServlet.java

Found 3 semantic errors compiling "/home/lool/tmp/libservlet2.2-java2/libservlet2.2-java-3.3.1a/src/share/javax/servlet/http/HttpServlet.java":

   944.     public void setStatus(int sc, String sm)
                        ^--------------------------^
*** Semantic Error: The overridden method "void setStatus(int sc, java.lang.String sm);" is deprecated in type "javax.servlet.http.HttpServletResponse".


   993.     public String encodeUrl(String url) 
                          ^-------------------^
*** Semantic Error: The overridden method "java.lang.String encodeUrl(java.lang.String url);" is deprecated in type "javax.servlet.http.HttpServletResponse".

 ... what should be deprecation warnings appear as errors.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=3Dfr_FR@euro, LC_CTYPE=3Dfr_FR@euro (charmap=ISO-8859-15)

Versions of packages jikes depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libgcc1                     1:3.4.3-6    GCC support library
ii  libstdc++5                  1:3.3.5-5    The GNU Standard C++ Library v3

-- no debconf information


   Regards,
-- 
Loïc Minier <lool@dooz.org>