users@jaxb.java.net

Re: primitive types (int, double etc.) instead of class types

From: Tomasz Toczyski <guf_at_kajak.org.pl>
Date: Fri, 12 Dec 2008 12:59:00 +0100 (CET)

Aleksei Valikov:
> Please see the globalBindings/_at_optionalProperty customization,
> sections 5.5.1 and 5.5.4 in the spec.

It seems reasonable. Alas, it doesn't work for me. I have tried
<jaxb:globalBindings optionalProperty="primitive">
and despite of it Jaxb generates getters of Integer values ( instead of
int values).

I also tried
<jaxb:globalBindings optionalProperty="isSet"> - The effect is the same
(Integers not ints)/

Maybe there is a bug in Jaxb?... I use Jaxb v.2.1.7

-tt.