United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7142091 [macosx] RFE: Refactoring of peer initialization/disposing
JDK-7142091 : [macosx] RFE: Refactoring of peer initialization/disposing

Details
Type:
Enhancement
Submit Date:
2012-02-02
Status:
Closed
Updated Date:
2013-09-09
Project Name:
JDK
Resolved Date:
2012-07-27
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
7u6
Fixed Versions:

Related Reports
Backport:
Relates:

Sub Tasks

Description
There is a problem in the initialization/disposing of the peers.
1. setVisible() should be called at the end of the peers initialization. We can move super.initialize() to the end of the peers initializations.
2. Invokelater in the initialization/disposing is a tricky.
3. replaceSurfacedata() should be moved outside of LWWindowPeer.setVisible()
4. Backbuffer in replaceSurfacedata() should be initialized by clearRect instead of fillrect(composite is important).
5. During lwwindowpeer initialization we call two similar methods nativeSetNSWindowAlpha() and setAlphaValue().

                                    

Comments
SUGGESTED FIX

http://cr.openjdk.java.net/~serb/7142091/webrev.01/
                                     
2012-05-31
EVALUATION

All points from the description were complete.
                                     
2012-06-26
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-comp/jdk/rev/7d1eae258183
                                     
2012-08-14



Hardware and Software, Engineered to Work Together