diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-17 16:30:46 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-17 16:30:46 +0000 |
commit | be65b7c519eb9d5fef14683a8f9f30f468e7cee9 (patch) | |
tree | 0fa65a6420e7475cbf951d8bd439bb1a2b1c9b52 /libjava/defineclass.cc | |
parent | 3a8f9efd3f3044a92d21ec7a2dfaf8c8e8ebd17d (diff) | |
download | gcc-be65b7c519eb9d5fef14683a8f9f30f468e7cee9.tar.gz |
* defineclass.cc (MAJOR_1_6): New define.
(MINOR_1_6): Likewise.
(_Jv_ClassReader::parse): Handle 1.6 bytecode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128551 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/defineclass.cc')
-rw-r--r-- | libjava/defineclass.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libjava/defineclass.cc b/libjava/defineclass.cc index 2024fb6440d..3416c468071 100644 --- a/libjava/defineclass.cc +++ b/libjava/defineclass.cc @@ -359,6 +359,8 @@ _Jv_DefineClass (jclass klass, jbyteArray data, jint offset, jint length, #define MINOR_1_4 0 #define MAJOR_1_5 49 #define MINOR_1_5 0 +#define MAJOR_1_6 50 +#define MINOR_1_6 0 void _Jv_ClassReader::parse () @@ -369,10 +371,10 @@ _Jv_ClassReader::parse () int minor_version = read2u (); int major_version = read2u (); - if (major_version < MAJOR_1_1 || major_version > MAJOR_1_5 - || (major_version == MAJOR_1_5 && minor_version > MINOR_1_5)) + if (major_version < MAJOR_1_1 || major_version > MAJOR_1_6 + || (major_version == MAJOR_1_6 && minor_version > MINOR_1_6)) throw_class_format_error ("unrecognized class file version"); - is_15 = (major_version == MAJOR_1_5); + is_15 = (major_version >= MAJOR_1_5); pool_count = read2u (); |