
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
On 1/7/07,
Arno Unkrig <
arno@...> wrote:
Hm. I don't quite get your point. All of ExpressionEvaluator, ScriptEvaluator and ClassBodyEvaluator support a
setClassName() method, which allows you to define a custom class name and package.
SimpleCompiler and Compiler compile complete compilation units, where you can define your package and class name yourself.
So where is your problem?
I anticipated that it is possible to use java-class source file "as is" without any additional external calls. It seems I can't just read and execute, I need to "setClassName". So, if I want to launch such code...
====================================
package my.cool.package;
public class My {
// etc.
}
====================================
...I have to cut first row, call setClassName() method and use generic procedure to launch code? It is not a problem, but why don't to do this inside Janino?
2) While it is crucial to keep library size small - I agree, it is
necessary to support new Java 5 features, such as templates, foreach-style
cycles and autoboxing. Especially the last ones, because of importance in
scripting.
I added this as a feature request to JIRA, see
That's nice, but I think autoboxing isn't the only thing to care about. There a many other things that are very usefull. Anyway, it is better than nothing.
Best regards,
Ilya Nedoluzhko aka RebornCrusader