equal
deleted
inserted
replaced
78 |
78 |
79 // We add assert in debug mode when class format is not checked. |
79 // We add assert in debug mode when class format is not checked. |
80 |
80 |
81 #define JAVA_CLASSFILE_MAGIC 0xCAFEBABE |
81 #define JAVA_CLASSFILE_MAGIC 0xCAFEBABE |
82 #define JAVA_MIN_SUPPORTED_VERSION 45 |
82 #define JAVA_MIN_SUPPORTED_VERSION 45 |
83 #define JAVA_MAX_SUPPORTED_VERSION 52 |
83 #define JAVA_MAX_SUPPORTED_VERSION 53 |
84 #define JAVA_MAX_SUPPORTED_MINOR_VERSION 0 |
84 #define JAVA_MAX_SUPPORTED_MINOR_VERSION 0 |
85 |
85 |
86 // Used for two backward compatibility reasons: |
86 // Used for two backward compatibility reasons: |
87 // - to check for new additions to the class file format in JDK1.5 |
87 // - to check for new additions to the class file format in JDK1.5 |
88 // - to check for bug fixes in the format checker in JDK1.5 |
88 // - to check for bug fixes in the format checker in JDK1.5 |
98 // - to disallow argument and require ACC_STATIC for <clinit> methods |
98 // - to disallow argument and require ACC_STATIC for <clinit> methods |
99 #define JAVA_7_VERSION 51 |
99 #define JAVA_7_VERSION 51 |
100 |
100 |
101 // Extension method support. |
101 // Extension method support. |
102 #define JAVA_8_VERSION 52 |
102 #define JAVA_8_VERSION 52 |
|
103 |
|
104 #define JAVA_9_VERSION 53 |
103 |
105 |
104 enum { LegalClass, LegalField, LegalMethod }; // used to verify unqualified names |
106 enum { LegalClass, LegalField, LegalMethod }; // used to verify unqualified names |
105 |
107 |
106 void ClassFileParser::parse_constant_pool_entries(const ClassFileStream* const stream, |
108 void ClassFileParser::parse_constant_pool_entries(const ClassFileStream* const stream, |
107 ConstantPool* cp, |
109 ConstantPool* cp, |