-
-
Notifications
You must be signed in to change notification settings - Fork 808
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test and fix for badly compiled classes in Java 9-11.
- Loading branch information
Showing
8 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...dy-dep/src/test/java-11/net/bytebuddy/test/precompiled/v11/ClassExtendsTypeReference.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package net.bytebuddy.test.precompiled.v11; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
import java.util.ArrayList; | ||
|
||
public class ClassExtendsTypeReference { | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) | ||
public @interface TypeAnnotation { | ||
/* empty */ | ||
} | ||
|
||
public Object foo() { | ||
return new ArrayList<@TypeAnnotation Object>() { | ||
/* empty */ | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+1.01 KB
.../test/precompiled-11/net/bytebuddy/test/precompiled/v11/ClassExtendsTypeReference$1.class
Binary file not shown.
Binary file added
BIN
+610 Bytes
...iled-11/net/bytebuddy/test/precompiled/v11/ClassExtendsTypeReference$TypeAnnotation.class
Binary file not shown.
Binary file added
BIN
+903 Bytes
...rc/test/precompiled-11/net/bytebuddy/test/precompiled/v11/ClassExtendsTypeReference.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...st/precompiled-11/net/bytebuddy/test/precompiled/v11/DynamicConstantBootstrap$Other.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...src/test/precompiled-11/net/bytebuddy/test/precompiled/v11/DynamicConstantBootstrap.class
Binary file not shown.