Reviewer needed - allow the package com.sun.awt to be used by Java compiler (but with warning)

Pavel Tisnovsky ptisnovs at redhat.com
Tue Feb 22 08:56:31 PST 2011


Hi all,

can anybody please review simple patch I'd like to add to IcedTea6 HEAD?

This patch allows programmers to properly compile applications which use
com.sun.awt.AWTUtilities (one new regression test
com/sun/awt/Translucency/WindowOpacity.java uses this package btw).

Because this package is not part of standard API, warning should be
printed by Java compiler in following way:

javac Test.java
Test.java:1: warning: com.sun.awt.AWTUtilities is Sun proprietary API
and may be removed in a future release
import com.sun.awt.AWTUtilities;
                  ^
1 warning

(Proprietary Oracle JDK 6 prints the same message btw)

PS: This change is already included in OpenJDK 7.

Thank you in advance,
Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: com-sun-awt.patch
Type: text/x-patch
Size: 488 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20110222/cebdc585/com-sun-awt.patch 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hg_diff
Url: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20110222/cebdc585/hg_diff.ksh 


More information about the distro-pkg-dev mailing list