Details
-
Type:
Enhancement
-
Status: Resolved
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: 7u6, 8
-
Fix Version/s: 8
-
Component/s: client-libs
-
Subcomponent:
-
Resolved In Build:b110
-
CPU:generic
-
OS:os_x
Description
This call is preventing headless apps that use ScriptEngine from running. The way the static init is structured currently, the AWT Toolkit is initialized on registration as a script engine. The AWT Toolkit init should not take place unless the app uses the AppleScriptEngine.
The following example will cause a menu bar to appear on a headless app (when it should not.)
import javax.script.ScriptEngineManager;
public class EngineTest {
public static void main(String[] args) throws Exception {
new ScriptEngineManager();
Thread.sleep(100000);
}
}
The following example will cause a menu bar to appear on a headless app (when it should not.)
import javax.script.ScriptEngineManager;
public class EngineTest {
public static void main(String[] args) throws Exception {
new ScriptEngineManager();
Thread.sleep(100000);
}
}
Attachments
Issue Links
- blocks
-
JDK-7177594 sun/tools/jrunscript tests should be excluded from javase headless (nightly) execution
-
- Resolved
-