[kaffe] unhandled NullPointerException in gjdoc from CVS

Dalibor Topic robilad at kaffe.org
Mon Feb 7 07:09:13 PST 2005


Kalle Olavi Niemitalo wrote:
> The following happened with a Kaffe I checked out from cvs.kaffe.org
> today and compiled with Debian gcc-3.3 1:3.3.5-4 on i386-pc-linux-gnu.
> 
> kalle at Astalo:~/pikkuohjelmat/java/TESTIT$ echo $LANG
> fi_FI.UTF-8
> kalle at Astalo:~/pikkuohjelmat/java/TESTIT$ cat javadoc.java
> public class X {
>     public interface Y {
>     }
> 
>     public interface Z {
>     }
> }
> kalle at Astalo:~/pikkuohjelmat/java/TESTIT$ ls -l $(type -p javadoc)
> lrwxrwxrwx  1 kalle kalle 46 2005-01-29 18:59 /home/kalle/i386-pc-linux-gnu/bin/javadoc -> ../../stow/kaffe/i386-pc-linux-gnu/bin/javadoc
> kalle at Astalo:~/pikkuohjelmat/java/TESTIT$ javadoc -locale fi_FI javadoc.java
> Loading source file javadoc.java ...
> java.lang.NullPointerException
>    at gnu.classpath.tools.gjdoc.Main.getCollator (Main.java:1453)
>    at gnu.classpath.tools.gjdoc.DocImpl.compareTo (DocImpl.java:58)
>    at gnu.classpath.tools.gjdoc.ClassDocImpl.compareTo (ClassDocImpl.java:1056)
>    at gnu.classpath.tools.gjdoc.ClassDocImpl.compareTo (ClassDocImpl.java:1036)
>    at java.util.TreeMap.compare (TreeMap.java:734)
>    at java.util.TreeMap.put (TreeMap.java:555)
>    at java.util.TreeSet.add (TreeSet.java:176)
>    at gnu.classpath.tools.gjdoc.PackageDocImpl.addClass (PackageDocImpl.java:51)
>    at gnu.classpath.tools.gjdoc.Parser.classOpened (Parser.java:856)
>    at gnu.classpath.tools.gjdoc.ClassComponent.process (Parser.java:563)
>    at gnu.classpath.tools.gjdoc.Parser.parse (Parser.java:773)
>    at gnu.classpath.tools.gjdoc.ClassComponent.process (Parser.java:568)
>    at gnu.classpath.tools.gjdoc.Parser.parse (Parser.java:773)
>    at gnu.classpath.tools.gjdoc.Parser.processSourceFile (Parser.java:733)
>    at gnu.classpath.tools.gjdoc.RootDocImpl.build (RootDocImpl.java:244)
>    at gnu.classpath.tools.gjdoc.Main.startDoclet (Main.java:567)
>    at gnu.classpath.tools.gjdoc.Main.start (Main.java:880)
>    at gnu.classpath.tools.gjdoc.Main.main (Main.java:720)

Thanks for the bug report, Kalle, and sorry for taking so long to reply. 
It turned out that this is a bug in GNU Classpath, and not in Kaffe. 
I've submitted a bug report there at 
http://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=11886 .

cheers,
dalibor topic




More information about the kaffe mailing list