This content has been marked as final.
Show 4 replies
-
1. Re: Can Javassist control class file's version?
ymruan Oct 7, 2004 3:17 AM (in response to ymruan)The classes are not complied by myself!the version info in class files is 0000 002E .
0000 002E means that the version of the class file is 46.0.
JDK 1.4 or older compilers use the version 45.x format.
So my guess is that class file might be compiled by JDK 1.5.However, I am not sure if this solution would
bring any potential troubles.
I don't think so (at least) unless you use JDK1.5 syntax.
Chiba -
2. Re: Can Javassist control class file's version?
chiba Oct 7, 2004 11:54 AM (in response to ymruan)What is your compiler? javac of JDK1.5?
JRE 1.4 might refuse a class file generated
by 1.5 compiler. -
3. Re: Can Javassist control class file's version?
ymruan Oct 7, 2004 10:03 PM (in response to ymruan)Hi professor,
The classes are not complied by myself!the version info in class files is 0000 002E .
The problem can be resolved simply by manually revising the version code. However, I am not sure if this solution would
bring any potential troubles. For instance, is there any differnce in class format for different versions? -
4. Re: Can Javassist control class file's version?
chiba Oct 8, 2004 11:57 AM (in response to ymruan)The classes are not complied by myself!the version info in class files is 0000 002E .
0000 002E means that the version of the class file is 46.0.
JDK 1.4 or older compilers use the version 45.x format.
So my guess is that class file might be compiled by JDK 1.5.However, I am not sure if this solution would
bring any potential troubles.
I don't think so (at least) unless you use JDK1.5 syntax.
Chiba