For some reason we never knew about instance initializer in java; on the other hand static initializer is well known.
class A { int x; static int y; // This is an instance initializer. { x = 1; } // This is a static initializer. static { y = 2; } }
Worse, we have missed it in the java grammar when we were building jxom. This way jxom was missing the feature.
Today we fix the miss and introduce a schema element:
<class-initializer static="boolean"> <block> ... </block> </class-initializer>
It superseeds:
<static> <block> ... </block> </static>
that supported static initializers alone.
Please update languages-xom xslt stylesheets.
P.S. Out of curiosity, did you ever see any use of instance initializers?
Remember Me
a@href@title, b, blockquote@cite, em, i, strike, strong, sub, super, u