Some parts of this message have been removed.
Learn more about Nabble's security policy.
Weird one
here guys,
Using JDK:
java
version "1.6.0_16"
Java(TM) SE
Runtime Environment (build 1.6.0_16-b01)
Java
HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
To the
problem:
I am using
janino-2.5.0 and I am noticing that the ClassBodyEvaluator is not compiling
Java varargs anymore J It definitely compiled under JDK 5 and I think it did previously under
JDK 6 but of course I know that makes no sense.
If I have a
function:
publicstaticbooleaninListStripLeadingZeros(String
search, String ... string) { // note var args at end
The
following code is passed to ClassBodyEvaluator (along with more code):
Not sure if Janino used to support var-args or not. If it used to, then this is likely a regression. Regardless, you can work around the problem by generating code that directly calls the String[] variant.
Matt
On Fri, Oct 23, 2009 at 5:52 PM, Paul Nolan <paul.nolan@...> wrote:
Weird one
here guys,
Using JDK:
java
version "1.6.0_16"
Java(TM) SE
Runtime Environment (build 1.6.0_16-b01)
Java
HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
To the
problem:
I am using
janino-2.5.0 and I am noticing that the ClassBodyEvaluator is not compiling
Java varargs anymore J It definitely compiled under JDK 5 and I think it did previously under
JDK 6 but of course I know that makes no sense.
If I have a
function:
publicstaticbooleaninListStripLeadingZeros(String
search, String ... string) { // note var args at end
The
following code is passed to ClassBodyEvaluator (along with more code):
Thanks Matt, I was mistaken - this never compiled, hence the confusion.
best,
- Paul.
On Mon, Oct 26, 2009 at 3:07 PM, Matt Fowles <matt.fowles@...> wrote:
Paul~
Not sure if Janino used to support var-args or not. If it used to, then this is likely a regression. Regardless, you can work around the problem by generating code that directly calls the String[] variant.
Matt
On Fri, Oct 23, 2009 at 5:52 PM, Paul Nolan <paul.nolan@...> wrote:
Weird one
here guys,
Using JDK:
java
version "1.6.0_16"
Java(TM) SE
Runtime Environment (build 1.6.0_16-b01)
Java
HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
To the
problem:
I am using
janino-2.5.0 and I am noticing that the ClassBodyEvaluator is not compiling
Java varargs anymore J It definitely compiled under JDK 5 and I think it did previously under
JDK 6 but of course I know that makes no sense.
If I have a
function:
publicstaticbooleaninListStripLeadingZeros(String
search, String ... string) { // note var args at end
The
following code is passed to ClassBodyEvaluator (along with more code):