]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.reflection/src/org/simantics/scl/reflection/functions/ClassMethodFunction3.java
Sync git svn branch with SVN repository r33144.
[simantics/platform.git] / bundles / org.simantics.scl.reflection / src / org / simantics / scl / reflection / functions / ClassMethodFunction3.java
index 17dafa3ec964dee2ba07a227c7972323192fd6be..fcad12f1b7da2bebaecc2446d92ca8b96ed32c95 100644 (file)
@@ -4,7 +4,6 @@ import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;\r
 \r
 import org.simantics.scl.runtime.function.FunctionImpl3;\r
-import org.simantics.scl.runtime.function.FunctionImplN;\r
 \r
 public class ClassMethodFunction3 extends FunctionImpl3 {\r
     Method method;\r
@@ -26,8 +25,7 @@ public class ClassMethodFunction3 extends FunctionImpl3 {
         } catch (IllegalAccessException e) {\r
             throw new RuntimeException(e);\r
         } catch (InvocationTargetException e) {\r
-            //e.printStackTrace();\r
-            throw new RuntimeException(e);\r
+            throw new RuntimeException(e.getCause());\r
         }\r
     }\r
     \r