[jdom-interest] BUG in Document

Jason Hunter jhunter at collab.net
Fri Feb 9 13:35:06 PST 2001


Frank Morton wrote:
> 
> public class Key extends Document {
>      public Key() {
>           super();
>           setRootElement(new Element("key"));
>      }
> }
> 
> I wish I could do in the constructor:
> 
>      super(new Element("key"));
> 
> But, you can't do that. 

Why not?

-jh-



More information about the jdom-interest mailing list