]> gcc.gnu.org Git - gcc.git/commitdiff
defineclass.cc (MAJOR_1_6): New define.
authorTom Tromey <tromey@redhat.com>
Mon, 17 Sep 2007 16:30:46 +0000 (16:30 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 17 Sep 2007 16:30:46 +0000 (16:30 +0000)
* defineclass.cc (MAJOR_1_6): New define.
(MINOR_1_6): Likewise.
(_Jv_ClassReader::parse): Handle 1.6 bytecode.

From-SVN: r128551

libjava/ChangeLog
libjava/defineclass.cc

index 53c1b54d84f75a3f62d007ff47ecebe3b9effa75..5cc87d9200e3aea0d1b064478f7b94b44f28220e 100644 (file)
@@ -1,3 +1,9 @@
+2007-09-17  Tom Tromey  <tromey@redhat.com>
+
+       * defineclass.cc (MAJOR_1_6): New define.
+       (MINOR_1_6): Likewise.
+       (_Jv_ClassReader::parse): Handle 1.6 bytecode.
+
 2007-09-12  David Daney  <ddaney@avtrex.com>
 
        * configure.host: Enable interpreter for mips64.  Enable hash
index 2024fb6440dd8ba88fd1b2b6eeaff2d0e85d6749..3416c4680714826555f5980d6d6ea9818b056a66 100644 (file)
@@ -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 ();
 
This page took 0.066407 seconds and 5 git commands to generate.