Adding MagicAccessorImpl class for GroovyMagic.
authorrtrimana <rtrimana@uci.edu>
Wed, 26 Jun 2019 19:38:59 +0000 (12:38 -0700)
committerrtrimana <rtrimana@uci.edu>
Wed, 26 Jun 2019 19:38:59 +0000 (12:38 -0700)
examples/Empty.groovy
src/classes/sun/reflect/MagicAccessorImpl.java [new file with mode: 0644]

index 4c130beb00c341293b3ef1514acd28143e5b1460..77aec71547e62db4a099b963f6992145d4dd9926 100644 (file)
@@ -22,10 +22,14 @@ class Empty {
 
        static void main(String[] args) {               
 
 
        static void main(String[] args) {               
 
-               //Empty emp = new Empty();
+               Empty emp = new Empty();
                //int result = emp.installed();
                //println result;
                //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!"
        }       
 }
                println "End of call!"
        }       
 }
diff --git a/src/classes/sun/reflect/MagicAccessorImpl.java b/src/classes/sun/reflect/MagicAccessorImpl.java
new file mode 100644 (file)
index 0000000..9015d66
--- /dev/null
@@ -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 {
+}