<AWT Dev> [OpenJDK 2D-Dev] JDK 9 RFR of JDK-8067092: Suppress windows-specific deprecation warnings in the java.desktop module

Alan Bateman Alan.Bateman at oracle.com
Tue Dec 16 21:25:23 UTC 2014


On 16/12/2014 18:29, Phil Race wrote:
> Yes .. no technical constraint there.
> Although I was pondering going further and seeing if we can actually 
> remove
> the public method java.awt.peer.Peer Component.getPeer()
> since with the module system the peer package is not accessible and this
> is then even  weirder than it is now .. as it effectively documents a 
> package
> we don't document (any more) and you can't use in JDK 9.
I think removing the Component::getPeer method is the right thing to do, 
it would not otherwise be possible to compile or run code that makes 
direct use of it.

-Alan


More information about the awt-dev mailing list