]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR libgcj/16032 (libgcj should reject class files with incorrect version numbers)
authorTom Tromey <tromey@redhat.com>
Thu, 15 Sep 2005 22:02:13 +0000 (22:02 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Thu, 15 Sep 2005 22:02:13 +0000 (22:02 +0000)
commita022cd596984f7eb8e6189fdabab09243a217dae
tree9f425c2996ae0b146771dcc668979c48675ee708
parent9026e8d4d52b13de3adcb6a165145a30f366decb
re PR libgcj/16032 (libgcj should reject class files with incorrect version numbers)

PR libgcj/16032:
* interpret.cc (AVAL1U): Resolve pool entry when not direct
threaded.
(AVAL2U): Likewise.
(compile): Handle 'ldc class' specially.
(_Jv_InterpMethod::run): Added special 'ldc class' instruction.
* verify.cc (check_constant): Handle 'ldc class' for 1.5 classes.
* defineclass.cc (handleCodeAttribute): Set new field.
(MAJOR_1_1, MINOR_1_1, MAJOR_1_2, MINOR_1_2, MAJOR_1_3, MINOR_1_3,
MAJOR_1_4, MINOR_1_4, MAJOR_1_5, MINOR_1_5): New defines.
(parse): Check version numbers.
(_Jv_ClassReader::is_15): New field.
(_Jv_ClassReader): Initialize it.
* include/java-interp.h (_Jv_InterpMethod::is_15): New field.

From-SVN: r104325
libjava/ChangeLog
libjava/defineclass.cc
libjava/include/java-interp.h
libjava/interpret.cc
libjava/verify.cc