<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Found a workaround. Using jinvoke allows you to use the method! <br><br>A = MyClass.new()<br>B = jinvoke(A,"thisIsAVeryVeryLongMethodName",5)<br><br><div><hr id="stopSpelling">From: joodlink@hotmail.com<br>To: users@lists.scilab.org<br>Date: Fri, 27 Feb 2015 14:53:34 +0800<br>Subject: [Scilab-users] Handling a very long Java method name<br><br>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">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. <br><br>--> A = MyClass.new()<br>--> B = A.thisIsAVeryVeryLongMethodName(5)<br>Warning :<br>The identifier : thisIsAVeryVeryLongMethodName<br> has been truncated to: thisIsAVeryVeryLongMetho.<br><br> !--error 999 <br>%_EObj_e: An error occurred: Exception when calling Java method : Invalid field ThisIsAVeryVeryLongMetho<br> at org.scilab.modules.external_objects_java.ScilabJavaObject.extract(Unknown Source)<br>Invalid field ThisIsAVeryVeryLongMetho<br> at org.scilab.modules.external_objects_java.ScilabJavaObject.extract(Unknown Source)<br><br> </div>
<br>_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users</div> </div></body>
</html>