Changeset 14778 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2019-02-10T15:35:17+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java
r14776 r14778 7 7 8 8 import java.awt.GraphicsEnvironment; 9 import java.awt.HeadlessException;10 9 import java.util.Arrays; 11 10 import java.util.Collection; … … 116 115 } 117 116 118 // On Java 9/10and headless mode, filter plugins requiring JavaFX as Monocle is not available117 // On Java < 11 and headless mode, filter plugins requiring JavaFX as Monocle is not available 119 118 int javaVersion = Utils.getJavaVersion(); 120 if (GraphicsEnvironment.isHeadless() && javaVersion >= 9 && javaVersion <= 10) {119 if (GraphicsEnvironment.isHeadless() && javaVersion < 11) { 121 120 for (Iterator<PluginInformation> it = plugins.iterator(); it.hasNext();) { 122 121 PluginInformation pi = it.next(); 123 122 if (pi.getRequiredPlugins().contains("openjfx")) { 124 System.out.println("Ignoring " + pi.name + " (requiring JavaFX and we're using Java 9/10in headless mode)");123 System.out.println("Ignoring " + pi.name + " (requiring JavaFX and we're using Java < 11 in headless mode)"); 125 124 it.remove(); 126 125 } … … 147 146 Throwable root = ExceptionUtils.getRootCause(t); 148 147 root.printStackTrace(); 149 // Ignore HeadlessException with JavaFX components. Issue hard to solve and we're not interested by that 150 if (!(root instanceof HeadlessException)) { 151 layerExceptions.put(findFaultyPlugin(loadedPlugins, root), root); 152 } 148 layerExceptions.put(findFaultyPlugin(loadedPlugins, root), root); 153 149 } 154 150 }
Note:
See TracChangeset
for help on using the changeset viewer.