geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament" <johndam...@apache.org>
Subject Re: Should primitive types work in config?
Date Sat, 29 Jul 2017 15:21:50 GMT
Ok i can push when im back at a computer (have changes locally).  Do we
want to introduce geronimo specific tests or wait until i can push to mp
config?

On Jul 29, 2017 11:02 AM, "Mark Struberg" <struberg@yahoo.de> wrote:

> Oh I see. Now I get what you mean.
> Yes, we should just register the same converters for their primitive
> counterparts as well.
>
> LieGrue,
> strub
>
> > Am 29.07.2017 um 13:12 schrieb John D. Ament <johndament@apache.org>:
> >
> > Hey guys
> >
> > I raised a spec level issue on MP Config because primitives don't work
> quite right in Geronimo Config and when I looked at the spec, it didn't say
> they should.
> >
> > Basically, primitives aren't used in the TCK, and the follow behaviors
> are noticed:
> >
> > int port = config.getValue("some key", Integer.class); // this works via
> unboxing
> > int port = config.getValue("some key", int.class); //fails due to
> missing converter
> >     @Inject
> >     @ConfigProperty(name="some key",defaultValue = "8080")
> >     private int port;
> > // also fails due to missing converter
> >
> > So should they? Is this a Geronimo specific issue?
> >
> > John
>
>

Mime
View raw message