|
Hello, Castor experts...
I've been trying to get the castor.properties /
primitivetowrapper option to work, with no luck...
wondering if someone could give me some guidance? I downloaded the entire source distribution for
castor-0.9.4.1
I did the following:
ant release
cd
$CASTOR_ROOT/src/examples/SourceGenerator
./test.sh
Got the
expected output from the test... when i looked at the generated java code for
test/Item.java I made note of the fact that primitive type (int) was returned
from the method
public int
getQuantity().
Next I created a
castor.properties file in the SourceGenerator directory with these contents
->
org.exolab.castor.debug=true
org.exolab.castor.builder.primitivetowrapper=true I did a rm -rf
test/*, then I
then ran test.sh again...
I got debugging
output as expected (so I know i put the properties file in the right
place).
BUT... when i looked at
the generated java code for
test/Item.java I became dazed and confused when i saw that a primitive type
(int) was
STILL being
returned from the method getQuantity().
I had expected a wrapped Object
(Integer) return value...
am i doing something wrong?
thanks in advance for your help...
-Chris
|
