While reading the chapter on
Java Beans in the Core Java Vol 2, I noticed that the JComponent class also includes some of the methods of the java.beans.PropertyChangeSupport object.
Does this mean that the code for these methods exists in two places? Isn't this bad programming practice? Why would Sun do something like this?
Also, I noticed that the Jcomponent class has overloaded versions of the firePropertyChange method - one for each of the primitive types . These are public methods. The firePropertyChange method that takes object arguments is protected. What is the reasoning behind making this one protected while the others are public?
I'm not sure if this question is appropriate in the
EJB forum, that's why I'm posting here.