From e9116bac18b5218e6fbe81101de1575ddb94a8f0 Mon Sep 17 00:00:00 2001 From: rtrimana Date: Wed, 26 Jun 2019 12:38:59 -0700 Subject: [PATCH] Adding MagicAccessorImpl class for GroovyMagic. --- examples/Empty.groovy | 8 ++++++-- src/classes/sun/reflect/MagicAccessorImpl.java | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 src/classes/sun/reflect/MagicAccessorImpl.java diff --git a/examples/Empty.groovy b/examples/Empty.groovy index 4c130be..77aec71 100644 --- a/examples/Empty.groovy +++ b/examples/Empty.groovy @@ -22,10 +22,14 @@ class Empty { static void main(String[] args) { - //Empty emp = new Empty(); + Empty emp = new Empty(); //int result = emp.installed(); //println result; - //emp.installed() + emp.installed() + int x = 5; + int y = 6; + int result = x + y; + println result println "End of call!" } } diff --git a/src/classes/sun/reflect/MagicAccessorImpl.java b/src/classes/sun/reflect/MagicAccessorImpl.java new file mode 100644 index 0000000..9015d66 --- /dev/null +++ b/src/classes/sun/reflect/MagicAccessorImpl.java @@ -0,0 +1,15 @@ +package sun.reflect; + +/** + * MJI model class for sun.reflect.generics.reflectiveObjects.MagicAccessorImpl + * + * This is a JPF specific version of a system class because we can't use the real, + * platform VM specific version (it's native all over the place, its field + * structure isn't documented, most of its methods are private, hence we can't + * even instantiate it properly). + * + * Note that this class never gets seen by the real VM - it's for JPF's eyes only. + * + */ +public class MagicAccessorImpl { +} -- 2.34.1