This is the mail archive of the java@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]

Re: VerifyError when compiling jetty


>>>>> "Bjarni" == Bjarni Thorisson <bjarni@menandmice.com> writes:

Bjarni> It works perfectly when compiled with sun's javac 1.2, 1.3 and
Bjarni> 1.4, but when I'd _successfully_ compiled it into bytecode
Bjarni> using gcj, I got this error when I tried to run it:

Sounds like a bug in the bytecode generation.  There are still a few
known bugs here :-(

Bjarni> Exception in thread "main" java.lang.VerifyError: (class:
Bjarni> org/mortbay/jetty/servlet/AbstractSessionManager$SessionScavenger, method:
Bjarni> run signature: ()V) Illegal use of nonvirtual function call

This sounds a bit like something I fixed recently.  However, it is
hard to be certain.  Do you have a small test case?  Could you make
one?

I think my fix for this problem hasn't been submitted yet.  I'm still
ironing out problems with it.  If you had a simple test case, I could
try it with my local gcj.

Bjarni> Can anyone please tell me what those errors mean and how I can
Bjarni> fix this or work around it

Compile to bytecode with javac, then use gcj to compile the bytecode.
That should work.

Bjarni> and whether anyone has ever compiled jetty using gcj
Bjarni> successfully.

I don't know.

Tom


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