[
https://issues.jboss.org/browse/JASSIST-192?page=com.atlassian.jira.plugi...
]
Shigeru Chiba commented on JASSIST-192:
---------------------------------------
Javassist does not support VARARGS because it is basically syntax sugar.
So I changed the type of this issue to Feature Request.
To call exec() in Test, use the following code:
Test.exec("TESTE", new Object[] { new Integer(1) });
At the bytecode level, Object... is interpreted as Object[].
Also see
http://www.javassist.org/tutorial/tutorial3.html#varargs
VARARGS calling raise not found method
--------------------------------------
Key: JASSIST-192
URL:
https://issues.jboss.org/browse/JASSIST-192
Project: Javassist
Issue Type: Feature Request
Affects Versions: 3.16.1-GA
Reporter: Kaoe Coito
Assignee: Shigeru Chiba
I have a class like
public class Test {
public static void exec(String call, Object... params) {
}
}
in javaassist i create this calls
Test.exec("TESTE");
raise not found exec(java.lang.String) in Test class
Test.exec("TESTE",1);
raise not found exec(java.lang.String, int) in Test class
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira