publicclass Test8012933 { private AppContext appContext = null; final ThreadGroup threadGroup = new ThreadGroup("test thread group"); final Object lock = new Object(); boolean isCreated = false;
publicstaticvoid main(String[] args) throws Exception {
SunToolkit.createNewAppContext(); new Test8012933().test();
}
privatevoid test() throws Exception {
createAppContext(); long startTime = System.currentTimeMillis();
appContext.dispose(); long endTime = System.currentTimeMillis();
// In case of the bug, calling dispose() when there is no EQ // dispatch thread running fails to create it, so it takes // almost 10 sec to return from dispose(), which is spent // waiting on the notificationLock. if ((endTime - startTime) > 9000) { thrownew RuntimeException("Returning from dispose() took too much time, probably a bug");
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.