This is a convoluted case, but it affects how torque works. I am working 
on a superclass and it gets the values of certain defined fields in the 
subclass via reflection using Fields.

The subclass (Peer) though contains a singleton reference that is in a 
line like:

private final static Peer instance = new Peer();

Having this causes the superclass constructor to be called before the 
subclass static initializer. This means that the fields are set to null 
because they are initialized in a static initializer in the subclass.

...

This is convoluted and hard to explain. There is a sample at:

http://odin.himinbi.org/tests/TestStaticInitializer.java

I am going to submit a patch and I wanted to try and give a reason behind 
the motivation.

Will Holcomb


--
To unsubscribe, e-mail:   <mailto:turbine-torque-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-torque-dev-help@;jakarta.apache.org>

Reply via email to