This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [Patch][gui] java.awt.dnd.DropTarget
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Cc: Bryce McKinlay <mckinlay at redhat dot com>, Classpath patch list <classpath-patches at gnu dot org>, graydon hoare <graydon at redhat dot com>
- Date: Thu, 27 Jan 2005 22:11:40 +0100
- Subject: Re: [Patch][gui] java.awt.dnd.DropTarget
- References: <20050127191936.GA11370@asterix.konqueror.de> <41F95041.4060302@redhat.com>
Am Donnerstag, 27. Januar 2005 21:34 schrieb Bryce McKinlay:
> Michael Koch wrote:
> >Index: java/awt/dnd/DropTarget.java
> >==================================================================
> >= RCS file: /cvs/gcc/gcc/libjava/java/awt/dnd/DropTarget.java,v
> > retrieving revision 1.7.20.1
> >diff -u -r1.7.20.1 DropTarget.java
> >--- java/awt/dnd/DropTarget.java 27 Sep 2004 15:14:28
> > -0000 1.7.20.1 +++ java/awt/dnd/DropTarget.java 27 Jan 2005
> > 19:13:21 -0000 @@ -211,9 +211,10 @@
> > public void addDropTargetListener (DropTargetListener dtl)
> > throws TooManyListenersException
> > {
> >- if (dtl != null)
> >- throw new TooManyListenersException ();
> >-
> >+ // Sun's JDK does not, despite documentation, throw any sort
> > of + // exception here when you install an additional
> > DropTargetListener. + // So to be compatible, we do the same
> > thing.
> >+
> > dropTargetListener = dtl;
> > }
>
> It would be better to change the Javadoc to reflect this, rather
> than just putting in a comment.
That was the way Graydon wrote it. I will Improve it now. Thanks for
the comment.
Michael
--
Homepage: http://www.worldforge.org/