Commit be661bce by Tom Tromey Committed by Tom Tromey

defineclass.cc (MAJOR_1_6): New define.

	* defineclass.cc (MAJOR_1_6): New define.
	(MINOR_1_6): Likewise.
	(_Jv_ClassReader::parse): Handle 1.6 bytecode.

From-SVN: r128551
parent a08a5751
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> 2007-09-12 David Daney <ddaney@avtrex.com>
* configure.host: Enable interpreter for mips64. Enable hash * configure.host: Enable interpreter for mips64. Enable hash
......
...@@ -359,6 +359,8 @@ _Jv_DefineClass (jclass klass, jbyteArray data, jint offset, jint length, ...@@ -359,6 +359,8 @@ _Jv_DefineClass (jclass klass, jbyteArray data, jint offset, jint length,
#define MINOR_1_4 0 #define MINOR_1_4 0
#define MAJOR_1_5 49 #define MAJOR_1_5 49
#define MINOR_1_5 0 #define MINOR_1_5 0
#define MAJOR_1_6 50
#define MINOR_1_6 0
void void
_Jv_ClassReader::parse () _Jv_ClassReader::parse ()
...@@ -369,10 +371,10 @@ _Jv_ClassReader::parse () ...@@ -369,10 +371,10 @@ _Jv_ClassReader::parse ()
int minor_version = read2u (); int minor_version = read2u ();
int major_version = read2u (); int major_version = read2u ();
if (major_version < MAJOR_1_1 || major_version > MAJOR_1_5 if (major_version < MAJOR_1_1 || major_version > MAJOR_1_6
|| (major_version == MAJOR_1_5 && minor_version > MINOR_1_5)) || (major_version == MAJOR_1_6 && minor_version > MINOR_1_6))
throw_class_format_error ("unrecognized class file version"); 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 (); pool_count = read2u ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment