JDK-8037739 : Remove API references to java.awt.peer and java.awt.dnd.peer packages in the JDK 9 timeframe
  • Type: Task
  • Component: client-libs
  • Affected Version: 9
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-03-18
  • Updated: 2017-07-19
  • Resolved: 2015-05-15
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 9
9 b65Fixed
Related Reports
Relates :  
Relates :  
Sub Tasks
JDK-8074028 :  
JDK-8074757 :  
JDK-8074763 :  
JDK-8078279 :  
JDK-8176292 :  
Comments
All tasks are completed.
15-05-2015

See http://mail.openjdk.java.net/pipermail/awt-dev/2015-February/008924.html for the openjdk announcement.
23-04-2015

This Task will be open until three sub-tasks (JDK-8074028, JDK-8074757, JDK-8074763) will not be pushed to the master ws (after PIT), following up some additional steps which might be needed.
21-04-2015

Converting this issue to a Task and create Sub-Tasks is fine.
26-02-2015

I will plan to split the fix in 3 subtasks. - Removing of Component.getPeer() - Removing of Toolkit.createXXX - Everything else. The first part will be sent to the review this week.
25-02-2015

I think we should change the synopsis on this issue, it's really about removing the references to types in java.awt.peer from the APIs in Java SE. Yes, this will be at incompatible change but should not be a big surprise to anyone as these methods have been deprecated for >15 years.
13-02-2015

Relevant information: These public SE APIs reference the unsupported java.awt.peer and java.awt.dnd.peer interfaces: public java.awt.Component.getPeer() @deprecated 1.1 public java.awt.Font.getPeer() @deprecated 1.1 public java.awt.MenuComponent.getPeer() @deprecated 1.1 The following are not deprecated: protected java.awt.dnd.DragSource.createDragSourceContext(java.awt.dnd.peer.DragSourceContextPeer, ...) public java.awt.dnd.DragSourceContext(java.awt.dnd.peer.DragSourceContextPeer, ...) constructor public java.awt.dnd.DropTarget.addNotify(ComponentPeer peer) and removeNotify(ComponentPeer peer) public java.awt.dnd.DropTargetContext.addNotify(DropTargetContextPeer dtcp) java.awt.Toolkit has many protected methods that return peer types: createButton, createCanvas, createCheckbox.... There are two methods in java.awt.peer.ComponentPeer interface referencing sun.* API: boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time, sun.awt.CausedFocusEvent.Cause cause); void applyShape(sun.java2d.pipe.Region shape);
12-02-2015

java.awt.Component.isLightweight() method can be used to check if it's a lightweight peer. This method should be used to replace component.getPeer() instanceof java.awt.peer.LightweightPeer to avoid the dependency on JDK internal API.
31-10-2014

It would be great if these methods could be removed, do you think you can establish the compatibility impact?
17-09-2014

XXXX.getPeer was marked as deprectaed in 1996/1998, do we have an option to remove it?
17-09-2014