RE: BeanShell 2.0b4 Available...

"Pat Niemeyer" <[email protected]> Mon, 23 May 2005 11:09:58 -0500 (CDT)
Newsgroups gmane.comp.java.beanshell.user,gmane.comp.java.beanshell.devel
Message-ID <[email protected]>
> I see it as important step towards Java5. It is very good, thanks.
>
> And next question is, when Java5 syntaxis is going to be supported ? Our
> team is especially interested in varargs (API that we use has many varargs
> methods) and support of Iterable in for-each loop.

It is likely that varargs will come in a minor update sooner than the rest
of the Java 5 syntax.  It should be fairly easy to implement them and some
code to support them is in place.   Varargs on Java methods will likely
only apply to Java code compiled with Java 5, as that introduces the new
flag that specifies that a method accetps varargs.  It would probably be
dangerous to change the parsing rules for code that was compiled prior to
Java 5.  But we will support them for scripted methods more generally.

The Iterable can also be easily added and take effect when the engine is
running on a Java 5 platform that has the Iterable class.


Pat




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id344&op=click