success building jetty 5 w/ gcj 4.0.2?

Tom Tromey tromey@redhat.com
Fri Mar 3 17:29:00 GMT 2006


>>>>> "Nelson" == Nelson Sproul <nelson.sproul@gmail.com> writes:

Nelson> When building from source, gcj is confused by statically
Nelson> initialized code blocks, and ends up making spurious
Nelson> complaints about duplicate variable definitions:

I don't recall seeing this particular bug.  But I'm not overly
surprised, the gcj .java front end has a number of problems.

For Fedora we ended up using the Eclipse .java->.class compiler
instead.

Nelson> org/mortbay/util/LineInput.java:884: error: verification error at PC=1242
Nelson> org/mortbay/util/LineInput.java:884: error: types could not be merged

In the 4.0.x series, using the default "C++ ABI" uses the old
bytecode verifier, which had some bugs.  This is one of them.  If you
can use the binary compatibility ABI ("-findirect-dispatch"), that
will use the new verifier, and will avoid this problem.

In 4.1.x the new verifier is always used.  Note that in 4.1.x the
.java front end bugs remain.  We're planning to fix these in 4.2.

Tom



More information about the Java mailing list