java.class.version is wrong?
gback at cs.utah.edu
Wed Mar 10 00:35:01 PST 1999
If you start kaffe -D, as in "kaffe -Djava.class.version=46"
you can set it to whatever you want.
> I found difference of JDK and Kaffe in java.class.version System property.
> According to JLS java.class.vertsion is "Class Format Version".
> For JDK1.1.7B, java.class.version is defined to 45.3.
> And For JDK1.2, it is defined to 46.
> But, in kaffe-snap, java.class.version is defined to 1.
> (In source file, kaffe_class_version in include/system.h)
> See Java Virtual Machine Specification, 4.1 The class File Format.
> > A Java Virtual Machine must not attempt to run code with a different
> > major version. A change of the major version number indicates a major
> > incompatible change, one that requires a fundamentally different Java
> > Virtual Machine.
> > ...
> > Only Sun may define the meaning of new class file version numbers.
> Jiro KANAYAMA
More information about the kaffe