Mercurial > hg > truffle
comparison src/share/vm/classfile/classFileParser.cpp @ 136:7f3a69574470
6695506: JVM should accept classfiles with classfile version 51
Summary: increase class file parser's acceptable max to 51
Reviewed-by: sbohne, ikrylov
author | kamg |
---|---|
date | Wed, 30 Apr 2008 10:58:37 -0400 |
parents | ba764ed4b6f2 |
children | 437d03ea40b1 6b648fefb395 |
comparison
equal
deleted
inserted
replaced
135:b7268662a986 | 136:7f3a69574470 |
---|---|
32 | 32 |
33 // We add assert in debug mode when class format is not checked. | 33 // We add assert in debug mode when class format is not checked. |
34 | 34 |
35 #define JAVA_CLASSFILE_MAGIC 0xCAFEBABE | 35 #define JAVA_CLASSFILE_MAGIC 0xCAFEBABE |
36 #define JAVA_MIN_SUPPORTED_VERSION 45 | 36 #define JAVA_MIN_SUPPORTED_VERSION 45 |
37 #define JAVA_MAX_SUPPORTED_VERSION 50 | 37 #define JAVA_MAX_SUPPORTED_VERSION 51 |
38 #define JAVA_MAX_SUPPORTED_MINOR_VERSION 0 | 38 #define JAVA_MAX_SUPPORTED_MINOR_VERSION 0 |
39 | 39 |
40 // Used for two backward compatibility reasons: | 40 // Used for two backward compatibility reasons: |
41 // - to check for new additions to the class file format in JDK1.5 | 41 // - to check for new additions to the class file format in JDK1.5 |
42 // - to check for bug fixes in the format checker in JDK1.5 | 42 // - to check for bug fixes in the format checker in JDK1.5 |