The jdk.jpackage.main.Main::run method for the jpackage tool, which is called either when the tool is run via the `jpacakge` command line tool or via a jpackage ToolProvider instance, is a static method that cannot be called concurrently from mutiple threads.
The implementation should instead use an instance method do that multiple instances of the ToolProvider can run concurrently. The logging should be relative to that instance (delegated where needed). Main can then be a simple lookup of the tool provider and invoke.
The implementation should instead use an instance method do that multiple instances of the ToolProvider can run concurrently. The logging should be relative to that instance (delegated where needed). Main can then be a simple lookup of the tool provider and invoke.
- relates to
-
JDK-8223334 Additional cleanup in jpackage tool
- Resolved
-
JDK-8259238 Clean up Log.java and remove usage of non-final static variables.
- Resolved
-
JDK-8223321 jpackage ToolProvider is not thread-safe
- Resolved
- links to
-
Review openjdk/jdk/1829