[jboss-jira] [JBoss JIRA] Resolved: (JASSIST-122) Support for VARARGS (variable arguments) methods declaration and calling by compiler
Shigeru Chiba (JIRA)
jira-events at lists.jboss.org
Thu Jul 8 14:20:47 EDT 2010
[ https://jira.jboss.org/browse/JASSIST-122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shigeru Chiba resolved JASSIST-122.
-----------------------------------
Fix Version/s: 3.13.0.GA
Resolution: Deferred
Javassist can generate a varargs method by using some trick.
I added to the tutorial (Section 7) the description of how to make a varargs method by Javassist.
> Support for VARARGS (variable arguments) methods declaration and calling by compiler
> -------------------------------------------------------------------------------------
>
> Key: JASSIST-122
> URL: https://jira.jboss.org/browse/JASSIST-122
> Project: Javassist
> Issue Type: Feature Request
> Reporter: Ivan Prisiazhnyy
> Assignee: Shigeru Chiba
> Fix For: 3.13.0.GA
>
>
> With Javassist one can handle calls to varargs methods manually.
> And even varargs methods can be created.
> But compiler it self have not support for it. So you can't do this:
> CtNewMethod.make("public int test(int... args) { return args.length; }", ctclass);
> and you can't call such functions.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list