projects
/
jpf-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adding a native method to handle getBounds() with a default answer: java.lang.Object
[jpf-core.git]
/
examples
/
Reflection.java
diff --git
a/examples/Reflection.java
b/examples/Reflection.java
index 88f41d555257c6e0fbae9fe898f9225fb289d3b8..f2feb06eaf5491190945dfd566f69f6dc075dcd7 100644
(file)
--- a/
examples/Reflection.java
+++ b/
examples/Reflection.java
@@
-62,7
+62,12
@@
public class Reflection {
}
System.out.println();
-
+
+ Type[] bounds = typeParameters[0].getBounds();
+ for (Type bound : bounds) {
+ System.out.println(bound);
+ }
+ System.out.println();
Type returnType = methods[0].getGenericReturnType();
System.out.println(returnType);