Hi, Found a mistake, corrected version at: http://cr.openjdk.java.net/~ceisserer/7080700/webrev.02/ It ended up with numAppContexts=2 when class-initialization was done, although there was only one context.
It's not clear to me why this case needs to be handled specially. I also > can't tell what code would be calling getAppContext under those conditions. > >From what I understand its a fast-path. For normal Swing Applications, no AppContexts are ever created (except the "system" context when AppContext.class is loaded -> numAppContexts=1), so the code avoids the look-up. I may have misunderstood it of course ;) Thanks, Clemens
