[Scilab-users] Handling a very long Java method name

Joo Cat joodlink at hotmail.com
Fri Feb 27 08:05:01 CET 2015


Found a workaround. Using jinvoke allows you to use the method! 

A = MyClass.new()
B = jinvoke(A,"thisIsAVeryVeryLongMethodName",5)

From: joodlink at hotmail.com
To: users at lists.scilab.org
Date: Fri, 27 Feb 2015 14:53:34 +0800
Subject: [Scilab-users] Handling a very long Java method name




I have a Java class that has a very long method name. When using the method, Scilab will give a warning and truncates the method to fit 24 characters. As a result, I will get an error saying that it is an invalid field. Is there a way to overcome this? Thanks. 

--> A = MyClass.new()
--> B = A.thisIsAVeryVeryLongMethodName(5)
Warning :
The identifier : thisIsAVeryVeryLongMethodName
 has been truncated to: thisIsAVeryVeryLongMetho.

 !--error 999 
%_EObj_e: An error occurred: Exception when calling Java method : Invalid field ThisIsAVeryVeryLongMetho
 at org.scilab.modules.external_objects_java.ScilabJavaObject.extract(Unknown Source)
Invalid field ThisIsAVeryVeryLongMetho
 at org.scilab.modules.external_objects_java.ScilabJavaObject.extract(Unknown Source)

 		 	   		  

_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20150227/4337d1a2/attachment.htm>


More information about the users mailing list