Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
asm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
asm
asm
Commits
8802a6ce
Commit
8802a6ce
authored
Dec 24, 2019
by
forax
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update to support V15
parent
8486f103
Pipeline
#7439
passed with stage
in 10 minutes and 20 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
asm/src/main/java/org/objectweb/asm/ClassReader.java
asm/src/main/java/org/objectweb/asm/ClassReader.java
+1
-1
asm/src/main/java/org/objectweb/asm/Opcodes.java
asm/src/main/java/org/objectweb/asm/Opcodes.java
+1
-0
asm/src/test/java/org/objectweb/asm/ConstantsTest.java
asm/src/test/java/org/objectweb/asm/ConstantsTest.java
+1
-0
No files found.
asm/src/main/java/org/objectweb/asm/ClassReader.java
View file @
8802a6ce
...
...
@@ -191,7 +191,7 @@ public class ClassReader {
this
.
b
=
classFileBuffer
;
// Check the class' major_version. This field is after the magic and minor_version fields, which
// use 4 and 2 bytes respectively.
if
(
checkClassVersion
&&
readShort
(
classFileOffset
+
6
)
>
Opcodes
.
V1
4
)
{
if
(
checkClassVersion
&&
readShort
(
classFileOffset
+
6
)
>
Opcodes
.
V1
5
)
{
throw
new
IllegalArgumentException
(
"Unsupported class file major version "
+
readShort
(
classFileOffset
+
6
));
}
...
...
asm/src/main/java/org/objectweb/asm/Opcodes.java
View file @
8802a6ce
...
...
@@ -278,6 +278,7 @@ public interface Opcodes {
int
V12
=
0
<<
16
|
56
;
int
V13
=
0
<<
16
|
57
;
int
V14
=
0
<<
16
|
58
;
int
V15
=
0
<<
16
|
59
;
/**
* Version flag indicating that the class is using 'preview' features.
...
...
asm/src/test/java/org/objectweb/asm/ConstantsTest.java
View file @
8802a6ce
...
...
@@ -243,6 +243,7 @@ public class ConstantsTest {
case
"V12"
:
case
"V13"
:
case
"V14"
:
case
"V15"
:
return
ConstantType
.
CLASS_VERSION
;
case
"ACC_PUBLIC"
:
case
"ACC_PRIVATE"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment