public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/27294] New: gij throws NullPointerException, when the interpreter is not enabled
@ 2006-04-24 21:26 debian-gcc at lists dot debian dot org
2006-05-04 18:10 ` [Bug libgcj/27294] " tromey at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2006-04-24 21:26 UTC (permalink / raw)
To: java-prs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libgcj/27294] gij throws NullPointerException, when the interpreter is not enabled
2006-04-24 21:26 [Bug libgcj/27294] New: gij throws NullPointerException, when the interpreter is not enabled debian-gcc at lists dot debian dot org
@ 2006-05-04 18:10 ` tromey at gcc dot gnu dot org
2006-05-05 15:05 ` tromey at gcc dot gnu dot org
2006-05-05 15:06 ` tromey at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-05-04 18:10 UTC (permalink / raw)
To: java-prs
------- Comment #1 from tromey at gcc dot gnu dot org 2006-05-04 18:10 -------
It isn't clear what exception we ought to throw here.
What is happening is that we've found a .class file for a class
we're searching for, but libgcj is not configured to properly
handle class files.
VirtualMachineError would be ok from a spec. point of view.
But it is a bit unfriendly. This is what I'm leaning toward.
ClassFormatError would also be legal but it is a bit of a lie.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-05-04 18:10:30
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27294
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libgcj/27294] gij throws NullPointerException, when the interpreter is not enabled
2006-04-24 21:26 [Bug libgcj/27294] New: gij throws NullPointerException, when the interpreter is not enabled debian-gcc at lists dot debian dot org
2006-05-04 18:10 ` [Bug libgcj/27294] " tromey at gcc dot gnu dot org
@ 2006-05-05 15:05 ` tromey at gcc dot gnu dot org
2006-05-05 15:06 ` tromey at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-05-05 15:05 UTC (permalink / raw)
To: java-prs
------- Comment #2 from tromey at gcc dot gnu dot org 2006-05-05 15:05 -------
Subject: Bug 27294
Author: tromey
Date: Fri May 5 15:05:20 2006
New Revision: 113554
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113554
Log:
PR libgcj/27294:
* java/lang/natVMClassLoader.cc (defineClass): Throw
VirtualMachineError if no interpreter configured.
Modified:
trunk/libjava/ChangeLog
trunk/libjava/java/lang/natVMClassLoader.cc
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27294
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libgcj/27294] gij throws NullPointerException, when the interpreter is not enabled
2006-04-24 21:26 [Bug libgcj/27294] New: gij throws NullPointerException, when the interpreter is not enabled debian-gcc at lists dot debian dot org
2006-05-04 18:10 ` [Bug libgcj/27294] " tromey at gcc dot gnu dot org
2006-05-05 15:05 ` tromey at gcc dot gnu dot org
@ 2006-05-05 15:06 ` tromey at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-05-05 15:06 UTC (permalink / raw)
To: java-prs
------- Comment #3 from tromey at gcc dot gnu dot org 2006-05-05 15:06 -------
Now we print something nicer:
opsy. gij t
Exception in thread "main" java.lang.VirtualMachineError: found class file for
class t, but no interpreter configured in this libgcj
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27294
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-05-05 15:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-24 21:26 [Bug libgcj/27294] New: gij throws NullPointerException, when the interpreter is not enabled debian-gcc at lists dot debian dot org
2006-05-04 18:10 ` [Bug libgcj/27294] " tromey at gcc dot gnu dot org
2006-05-05 15:05 ` tromey at gcc dot gnu dot org
2006-05-05 15:06 ` tromey at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).