[Swift-commit] r5260 - branches/release-0.93/src/org/griphyn/vdl/karajan/lib/swiftscript

jonmon at ci.uchicago.edu jonmon at ci.uchicago.edu
Thu Oct 27 22:50:31 CDT 2011


Author: jonmon
Date: 2011-10-27 22:50:31 -0500 (Thu, 27 Oct 2011)
New Revision: 5260

Modified:
   branches/release-0.93/src/org/griphyn/vdl/karajan/lib/swiftscript/Java.java
Log:
Added fix for the @java function. Java.java:getMethod() was using toString() instead of getValue().


Modified: branches/release-0.93/src/org/griphyn/vdl/karajan/lib/swiftscript/Java.java
===================================================================
--- branches/release-0.93/src/org/griphyn/vdl/karajan/lib/swiftscript/Java.java	2011-10-26 16:33:11 UTC (rev 5259)
+++ branches/release-0.93/src/org/griphyn/vdl/karajan/lib/swiftscript/Java.java	2011-10-28 03:50:31 UTC (rev 5260)
@@ -46,8 +46,8 @@
             ("@java() requires at least two arguments");
         
         try {
-            lib = args[0].toString();
-            name = args[1].toString();
+            lib = (String)args[0].getValue();
+            name = (String)args[1].getValue();
             clazz = Class.forName(lib); 
             Method[] methods = clazz.getMethods();
             result = null;




More information about the Swift-commit mailing list