mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 22:17:41 +00:00
[jdk13] Added a new constant pool type to our cp parser
This commit is contained in:
1 file changed
+6
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2018 The Project Lombok Authors.
|
||||
* Copyright (C) 2010-2019 The Project Lombok Authors.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -43,6 +43,7 @@ public class ClassFileMetaData {
|
||||
// New in java7: support for methodhandles and invokedynamic
|
||||
private static final byte METHOD_HANDLE = 15;
|
||||
private static final byte METHOD_TYPE = 16;
|
||||
private static final byte DYNAMIC = 17;
|
||||
private static final byte INVOKE_DYNAMIC = 18;
|
||||
// New in java9: support for modules
|
||||
private static final byte MODULE = 19;
|
||||
@@ -96,6 +97,7 @@ public class ClassFileMetaData {
|
||||
case INTERFACE_METHOD:
|
||||
case NAME_TYPE:
|
||||
case INVOKE_DYNAMIC:
|
||||
case DYNAMIC:
|
||||
position += 4;
|
||||
break;
|
||||
case LONG:
|
||||
@@ -388,6 +390,9 @@ public class ClassFileMetaData {
|
||||
case METHOD_TYPE:
|
||||
result.append("MethodType...");
|
||||
break;
|
||||
case DYNAMIC:
|
||||
result.append("Dynamic...");
|
||||
break;
|
||||
case INVOKE_DYNAMIC:
|
||||
result.append("InvokeDynamic...");
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user