United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7124326 [macosx] An issue similar to autoshutdown one in two AppContexts situation.
JDK-7124326 : [macosx] An issue similar to autoshutdown one in two AppContexts situation.

Details
Type:
Bug
Submit Date:
2011-12-23
Status:
Resolved
Updated Date:
2013-04-16
Project Name:
JDK
Resolved Date:
2012-07-10
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
http://java.net/jira/browse/MACOSX_PORT-572 submitted 2011/10/17 by Yuri Nesterenko
Compile and run the attached test (just javac/java, without any extra machinery). It don't paint anything but creates and dismisses AppContext and runs a child application (which may be irreleant).
It never ends.
However if you explicitly add "else{ System.exit(0); }" to the end of the first main() routine, it ends gracefully.

                                    

Comments
EVALUATION

Author: Yuri Nesterenko Date: 17/Oct/11 01:25 PM
Build: b212
AWT_DnD/Clipboard/Automated/JTextComponent/bug_4668508
AWT_DnD/Clipboard/Automated/LostOwnershipChainTest/bug_4692059
                                     
2011-12-23
SUGGESTED FIX

--- old/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java	2012-06-26 16:03:54.000000000 +0400
+++ new/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java	2012-06-26 16:03:53.000000000 +0400
@@ -216,7 +216,6 @@
     @Override
     public SystemTrayPeer createSystemTray(SystemTray target) {
         SystemTrayPeer peer = new CSystemTray();
-        targetCreatedPeer(target, peer);
         return peer;
     }
                                     
2012-06-26
EVALUATION

SystemTrayPeer should not be added to the peers map. This is what we do on other platforms, and everything works fine there.
                                     
2012-06-26
EVALUATION

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



Hardware and Software, Engineered to Work Together