-
Notifications
You must be signed in to change notification settings - Fork 277
Include annotations in Java class loading [TG-3831] #3227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
antlechner
merged 3 commits into
diffblue:develop
from
antlechner:load-annotation-classes
Oct 31, 2018
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
BIN
+253 Bytes
jbmc/regression/jbmc/class-loading-annotations/AnnotationWithArrayValue.class
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
jbmc/regression/jbmc/class-loading-annotations/AnnotationWithArrayValue.java
This file contains hidden or 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,5 @@ | ||
public @interface AnnotationWithArrayValue { | ||
|
||
Class<?>[] value(); | ||
|
||
} |
Binary file added
BIN
+251 Bytes
jbmc/regression/jbmc/class-loading-annotations/AnnotationWithClassValue.class
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
jbmc/regression/jbmc/class-loading-annotations/AnnotationWithClassValue.java
This file contains hidden or 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,5 @@ | ||
public @interface AnnotationWithClassValue { | ||
|
||
Class<?> value(); | ||
|
||
} |
Binary file added
BIN
+344 Bytes
jbmc/regression/jbmc/class-loading-annotations/ArrayValueAnnotationOnClass.class
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
jbmc/regression/jbmc/class-loading-annotations/ArrayValueAnnotationOnClass.java
This file contains hidden or 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,3 @@ | ||
@AnnotationWithArrayValue({MyClassA.class, MyClassB.class}) | ||
public class ArrayValueAnnotationOnClass { | ||
} |
Binary file added
BIN
+383 Bytes
jbmc/regression/jbmc/class-loading-annotations/ArrayValueAnnotationOnField.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
jbmc/regression/jbmc/class-loading-annotations/ArrayValueAnnotationOnField.java
This file contains hidden or 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,4 @@ | ||
public class ArrayValueAnnotationOnField { | ||
@AnnotationWithArrayValue({MyClassA.class, MyClassB.class}) | ||
int arrayValueAnnotatedField; | ||
} |
Binary file added
BIN
+413 Bytes
jbmc/regression/jbmc/class-loading-annotations/ArrayValueAnnotationOnMethod.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
jbmc/regression/jbmc/class-loading-annotations/ArrayValueAnnotationOnMethod.java
This file contains hidden or 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,4 @@ | ||
public class ArrayValueAnnotationOnMethod { | ||
@AnnotationWithArrayValue({MyClassA.class, MyClassB.class}) | ||
public void arrayValueAnnotatedMethod() {} | ||
} |
Binary file added
BIN
+439 Bytes
jbmc/regression/jbmc/class-loading-annotations/ArrayValueAnnotationOnParameter.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
jbmc/regression/jbmc/class-loading-annotations/ArrayValueAnnotationOnParameter.java
This file contains hidden or 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,4 @@ | ||
public class ArrayValueAnnotationOnParameter { | ||
public void classValueAnnotatedParameter( | ||
@AnnotationWithArrayValue({MyClassA.class, MyClassB.class}) int param) {} | ||
} |
Binary file added
BIN
+325 Bytes
jbmc/regression/jbmc/class-loading-annotations/ClassValueAnnotationOnClass.class
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
jbmc/regression/jbmc/class-loading-annotations/ClassValueAnnotationOnClass.java
This file contains hidden or 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,3 @@ | ||
@AnnotationWithClassValue(MyClassA.class) | ||
public class ClassValueAnnotationOnClass { | ||
} |
Binary file added
BIN
+364 Bytes
jbmc/regression/jbmc/class-loading-annotations/ClassValueAnnotationOnField.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
jbmc/regression/jbmc/class-loading-annotations/ClassValueAnnotationOnField.java
This file contains hidden or 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,4 @@ | ||
public class ClassValueAnnotationOnField { | ||
@AnnotationWithClassValue(MyClassA.class) | ||
int classValueAnnotatedField; | ||
} |
Binary file added
BIN
+394 Bytes
jbmc/regression/jbmc/class-loading-annotations/ClassValueAnnotationOnMethod.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
jbmc/regression/jbmc/class-loading-annotations/ClassValueAnnotationOnMethod.java
This file contains hidden or 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,4 @@ | ||
public class ClassValueAnnotationOnMethod { | ||
@AnnotationWithClassValue(MyClassA.class) | ||
public void classValueAnnotatedMethod() {} | ||
} |
Binary file added
BIN
+420 Bytes
jbmc/regression/jbmc/class-loading-annotations/ClassValueAnnotationOnParameter.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
jbmc/regression/jbmc/class-loading-annotations/ClassValueAnnotationOnParameter.java
This file contains hidden or 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,4 @@ | ||
public class ClassValueAnnotationOnParameter { | ||
public void classValueAnnotatedParameter( | ||
@AnnotationWithClassValue(MyClassA.class) int param) {} | ||
} |
Binary file not shown.
This file contains hidden or 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 @@ | ||
public class MyClassA {} |
Binary file not shown.
This file contains hidden or 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 @@ | ||
public class MyClassB {} |
9 changes: 9 additions & 0 deletions
9
jbmc/regression/jbmc/class-loading-annotations/test-array-value-annotation-on-class.desc
This file contains hidden or 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,9 @@ | ||
CORE | ||
ArrayValueAnnotationOnClass.class | ||
--verbosity 10 | ||
Getting class `MyClassA' from file \.[\\/]MyClassA\.class | ||
Getting class `MyClassB' from file \.[\\/]MyClassB\.class | ||
-- | ||
-- | ||
This test checks that element classes of arrays that are given as values of a class-level annotation | ||
are loaded by java_class_loadert. |
9 changes: 9 additions & 0 deletions
9
jbmc/regression/jbmc/class-loading-annotations/test-array-value-annotation-on-field.desc
This file contains hidden or 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,9 @@ | ||
CORE | ||
ArrayValueAnnotationOnField.class | ||
--verbosity 10 | ||
Getting class `MyClassA' from file \.[\\/]MyClassA\.class | ||
Getting class `MyClassB' from file \.[\\/]MyClassB\.class | ||
-- | ||
-- | ||
This test checks that element classes of arrays that are given as values of a field-level annotation | ||
are loaded by java_class_loadert. |
9 changes: 9 additions & 0 deletions
9
jbmc/regression/jbmc/class-loading-annotations/test-array-value-annotation-on-method.desc
This file contains hidden or 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,9 @@ | ||
CORE | ||
ArrayValueAnnotationOnMethod.class | ||
--verbosity 10 | ||
Getting class `MyClassA' from file \.[\\/]MyClassA\.class | ||
Getting class `MyClassB' from file \.[\\/]MyClassB\.class | ||
-- | ||
-- | ||
This test checks that element classes of arrays that are given as values of a method-level | ||
annotation are loaded by java_class_loadert. |
9 changes: 9 additions & 0 deletions
9
jbmc/regression/jbmc/class-loading-annotations/test-array-value-annotation-on-parameter.desc
This file contains hidden or 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,9 @@ | ||
CORE | ||
ArrayValueAnnotationOnParameter.class | ||
--verbosity 10 | ||
Getting class `MyClassA' from file \.[\\/]MyClassA\.class | ||
Getting class `MyClassB' from file \.[\\/]MyClassB\.class | ||
-- | ||
-- | ||
This test checks that element classes of arrays that are given as values of an annotation at method | ||
parameter level are loaded by java_class_loadert. |
9 changes: 9 additions & 0 deletions
9
jbmc/regression/jbmc/class-loading-annotations/test-class-value-annotation-on-class.desc
This file contains hidden or 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,9 @@ | ||
CORE | ||
ClassValueAnnotationOnClass.class | ||
--verbosity 10 | ||
Getting class `MyClassA' from file \.[\\/]MyClassA\.class | ||
-- | ||
MyClassB | ||
-- | ||
This test checks that classes that are given as values of a class-level annotation are loaded by | ||
java_class_loadert. |
9 changes: 9 additions & 0 deletions
9
jbmc/regression/jbmc/class-loading-annotations/test-class-value-annotation-on-field.desc
This file contains hidden or 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,9 @@ | ||
CORE | ||
ClassValueAnnotationOnField.class | ||
--verbosity 10 | ||
Getting class `MyClassA' from file \.[\\/]MyClassA\.class | ||
-- | ||
MyClassB | ||
-- | ||
This test checks that classes that are given as values of a field-level annotation are loaded by | ||
java_class_loadert. |
9 changes: 9 additions & 0 deletions
9
jbmc/regression/jbmc/class-loading-annotations/test-class-value-annotation-on-method.desc
This file contains hidden or 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,9 @@ | ||
CORE | ||
ClassValueAnnotationOnMethod.class | ||
--verbosity 10 | ||
Getting class `MyClassA' from file \.[\\/]MyClassA\.class | ||
-- | ||
MyClassB | ||
-- | ||
This test checks that classes that are given as values of a method-level annotation are loaded by | ||
java_class_loadert. |
9 changes: 9 additions & 0 deletions
9
jbmc/regression/jbmc/class-loading-annotations/test-class-value-annotation-on-parameter.desc
This file contains hidden or 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,9 @@ | ||
CORE | ||
ClassValueAnnotationOnParameter.class | ||
--verbosity 10 | ||
Getting class `MyClassA' from file \.[\\/]MyClassA\.class | ||
-- | ||
MyClassB | ||
-- | ||
This test checks that classes that are given as values of an annotation at method parameter level | ||
are loaded by java_class_loadert. |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.