[prev in list] [next in list] [prev in thread] [next in thread] 

List:       scilab-users
Subject:    Re: [Scilab-users] Handling a very long Java method name
From:       Joo Cat <joodlink () hotmail ! com>
Date:       2015-02-27 7:05:01
Message-ID: BLU182-W281290CCDD9AC98CB750E6C1150 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

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

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

From: joodlink@hotmail.com
To: users@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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users 		 	   		  


[Attachment #5 (text/html)]

<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>--&gt; A = MyClass.new()<br>--&gt; B = \
A.thisIsAVeryVeryLongMethodName(5)<br>Warning :<br>The identifier : \
thisIsAVeryVeryLongMethodName<br>&nbsp;has been truncated to: \
thisIsAVeryVeryLongMetho.<br><br>&nbsp;!--error 999 <br>%_EObj_e: An error occurred: \
Exception when calling Java method : Invalid field \
ThisIsAVeryVeryLongMetho<br>&nbsp;at \
org.scilab.modules.external_objects_java.ScilabJavaObject.extract(Unknown \
Source)<br>Invalid field ThisIsAVeryVeryLongMetho<br>&nbsp;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>



_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic