users@jaxb.java.net

Re: JMethod.varParam generating array instead of object definition

From: Fabian Ritzmann <Fabian.Ritzmann_at_Sun.COM>
Date: Fri, 02 Jun 2006 16:21:35 +0200

On 01.06.2006, at 19:35, Kohsuke Kawaguchi wrote:

> Fixed.

Cool, thanks.

Fabian


> Kohsuke Kawaguchi wrote:
>> Fabian Ritzmann wrote:
>>> Hi,
>>> I found that this code:
>>> com.sun.codemodel.JMethod formatArgs = myClass.method
>>> (JMod.PUBLIC, String.class, "format");
>>> formatArgs.varParam(Object.class, "args");
>>> is producing this output:
>>> public String format(Object[]... args)
>>> I had expected to get an "Object..." instead of "Object[]...". Am
>>> I doing something wrong or is this a bug? I'm using a jaxb-
>>> xjc.jar with this manifest entry:
>>> Build-Id: 04/27/2006 03:14 PM(hudson)
>> That sounds like a bug.
>> (And Build ID should include the hudson build number --- I guess
>> taht's another bug)
>
>
> --
> Kohsuke Kawaguchi
> Sun Microsystems kohsuke.kawaguchi_at_sun.com