mxj calling constructor?

Brian E Willkie's icon
nick rothwell | project cassiel's icon

This isn't a constructor; it's a method, since you've given it a
return type of void. I'm rather surprised that it compiles at all,
but at least according to Eclipse it's legal, although I do get a
warning. I'm several hundred miles from my copy of the Java Language
Specification right now so can't look it up.

    -- N.

nick rothwell -- composition, systems, performance -- http://
www.cassiel.com

Owen Green's icon

It certainaly is legal. IIRC, it was in Roedy Green's unmaintainable code how-to at one point.