http://stackoverflow.com/questions/3404301/whats-wrong-with-overridable-method-calls-in-constructors
On Aug 11, 10:11 am, Wildam Martin <[email protected]> wrote: > I have a constructor of a normal class and within that I call another > public method. > > Now NetBeans wants me to make the complete class final or change the > public method to final, static or private. > > I assume that is because of possible derivations of the class. But if > somebody subclasses this class and overwrites that public method, > shouldn't then the overwritten variant of this method be called? And > then everything would be fine I think. > > So I do not really understand why NetBeans would like me to change this... > -- > Martin Wildam > > http://www.google.com/profiles/mwildam > > screen080.png > 18KViewDownload -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
