JDK-6773363 : Fix bad copyrights in src/share/classes/java/awt/dnd and test/javax/script/Test3.java
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: OpenJDK6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-11-19
  • Updated: 2011-01-21
  • Resolved: 2008-11-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 Other
7Resolved OpenJDK6Fixed
Related Reports
Relates :  
Relates :  
Description
The fix of the antibug 5102378 added import statements into the copyright block of two dnd files; these stray (and ineffective!) imports should be removed.

jdk/src/share/classes/java/awt/dnd/DragSource.java
jdk/src/share/classes/java/awt/dnd/DragSourceContext.java

The file

jdk/test/javax/script/Test3.java 

has an extra blank line.

Comments
SUGGESTED FIX --- old/src/share/classes/java/awt/dnd/DragSource.java Tue Nov 18 22:18:49 2008 +++ new/src/share/classes/java/awt/dnd/DragSource.java Tue Nov 18 22:18:49 2008 @@ -7,10 +7,6 @@ * published by the Free Software Foundation. Sun designates this * particular file as subject to the "Classpath" exception as provided * by Sun in the LICENSE file that accompanied this code. -import java.awt.AWTError; -import java.awt.AWTException; -import java.awt.event.InputEvent; -import java.awt.AWTPermission; * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or @@ -22,7 +18,6 @@ * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * -import java.io.Serializable; * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, * CA 95054 USA or visit www.sun.com if you need additional information or * have any questions. --- old/src/share/classes/java/awt/dnd/DragSourceContext.java Tue Nov 18 22:18:52 2008 +++ new/src/share/classes/java/awt/dnd/DragSourceContext.java Tue Nov 18 22:18:52 2008 @@ -7,7 +7,6 @@ * published by the Free Software Foundation. Sun designates this * particular file as subject to the "Classpath" exception as provided * by Sun in the LICENSE file that accompanied this code. -import java.awt.event.InputEvent; * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or @@ -17,11 +16,6 @@ * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, -import java.awt.dnd.DragGestureEvent; -import java.awt.dnd.DragSource; -import java.awt.dnd.DragSourceListener; -import java.awt.dnd.InvalidDnDOperationException; - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, --- old/test/javax/script/Test3.java Tue Nov 18 22:18:53 2008 +++ new/test/javax/script/Test3.java Tue Nov 18 22:18:53 2008 @@ -4,7 +4,6 @@ * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT
19-11-2008

EVALUATION Yes, should be fixed.
19-11-2008