This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/27294] New: gij throws NullPointerException, when the interpreter is not enabled


gij-4.1 \
            -classpath build/bootstrap/ecj.jar:/usr/share/ant/lib/ant.jar \
            org.eclipse.jdt.internal.compiler.batch.Main \
            -bootclasspath /usr/share/java/libgcj-4.1.jar \
            build/bin

Exception in thread "main" java.lang.NullPointerException
   at java.lang.ClassLoader.defineClass (ClassLoader.java:451)
   at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:108)
   at java.net.URLClassLoader.findClass (URLClassLoader.java:1166)
   at java.lang.ClassLoader.loadClass (ClassLoader.java:317)
   at java.lang.ClassLoader.loadClass (ClassLoader.java:260)
   at java.lang.Class.forName (natClass.cc:88)
   at gnu.java.lang.MainThread.run (MainThread.java:95)
make: *** [build/stamp] Error 1

>>>>> "Martin" == Martin Michlmayr <tbm@cyrius.com> writes:

Hmm.  We probably ought to throw a different exception here.  Would
you mind filing a bug for this?

Martin> Exception in thread "main" java.lang.NullPointerException
Martin>    at java.lang.ClassLoader.defineClass (ClassLoader.java:451)

What this most likely means is that there is an attempt to define a
class from bytecode, and the attempt failed.

Looking at libjava/configure.host, I see that the interpreter is not
enabled for the MIPS port.  So, an exception here is to be expected.

[testing the latter, just the bug report for the NullPointerException]


-- 
           Summary: gij throws NullPointerException, when the interpreter is
                    not enabled
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27294


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]