mirror of
https://github.com/corda/corda.git
synced 2025-06-18 07:08:15 +00:00
fix java 1.6 compatibility, and make sure it's maintained in the future
This commit is contained in:
@ -145,7 +145,7 @@ public class Reflection {
|
||||
expect(r.egads == 0);
|
||||
|
||||
Reflection.class.getDeclaredField("egads").set(r, 42);
|
||||
expect(((int) Reflection.class.getDeclaredField("egads").get(r)) == 42);
|
||||
expect(((Integer)Reflection.class.getDeclaredField("egads").get(r)) == 42);
|
||||
|
||||
Reflection.class.getDeclaredField("egads").setInt(r, 43);
|
||||
expect(Reflection.class.getDeclaredField("egads").getInt(r) == 43);
|
||||
|
Reference in New Issue
Block a user