classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC: Re: [cp-patches] Re: [commit-cp] classpath ./ChangeLog examples


From: Andrew John Hughes
Subject: Re: RFC: Re: [cp-patches] Re: [commit-cp] classpath ./ChangeLog examples/gnu/classpath/ex...
Date: Mon, 28 Mar 2005 03:24:48 +0100

On Sun, 2005-03-27 at 16:30 -0700, Tom Tromey wrote:
...
> I wonder what Sun does.
...

I did a few tests to find out.  I have some code that gives the verifier
error I mentioned when doing a native compile with gcj 4.0.  I made up a
simple test case that used this class, and then found some machines with
JDK 1.4 and 1.5 on.

With the original 1.5 compiled class file (ecj -1.5), JDK 1.4 complains
about the version number without even examining any further into the
contents.

I then edited the class file to use the 1.4 version number, 48, in order
to simulate a 1.4 class file with ldc .class constructs.
With 1.4, the compiler fails:

Exception in thread "main" java.lang.VerifyError: (class:
nongnu/cashews/eclipse/composer/ui/PaletteFactory, method:
createComponentsDrawer signature:
()Lorg/eclipse/gef/palette/PaletteContainer;) Illegal type in constant
pool

The same thing occurs with a 1.4 class file on 1.5.  With the original
class file, the test runs.  So, it appears they follow the pedantic
approach.


> Tom
> 
Cheers,
-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint)
attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

No software patents in Europe -- http://nosoftwarepatents.com

"Value your freedom, or you will lose it, teaches history.
`Don't bother us with politics' respond those who don't want to learn."
-- Richard Stallman

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]