Index: javax/swing/DefaultListSelectionModel.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/DefaultListSelectionModel.java,v retrieving revision 1.11 diff -u -r1.11 DefaultListSelectionModel.java --- javax/swing/DefaultListSelectionModel.java 31 Dec 2004 16:27:30 -0000 1.11 +++ javax/swing/DefaultListSelectionModel.java 19 Jan 2005 18:12:51 -0000 @@ -600,4 +600,21 @@ { return (ListSelectionListener[]) getListeners(ListSelectionListener.class); } + + /** + * Returns a clone of this object. + * listenerList don't gets duplicated. + * + * @return the cloned object + * + * @throws CloneNotSupportedException if an error occurs + */ + public Object clone() + throws CloneNotSupportedException + { + DefaultListSelectionModel model = + (DefaultListSelectionModel) super.clone(); + model.sel = (BitSet) sel.clone(); + return model; + } }