mbien commented on code in PR #6544:
URL: https://github.com/apache/netbeans/pull/6544#discussion_r1349659284
##########
platform/netbinox/src/org/netbeans/modules/netbinox/NetbinoxFactory.java:
##########
@@ -74,6 +77,45 @@ public Framework newFramework(Map map) {
configMap.put("osgi.locking", "none"); // NOI18N
}
+ // Ensure that the org.osgi.framework.executionenvironment holds all
+ // JavaSE entries that match till the current JDK. The dynamic approach
+ // will work also for newly released JDKs.
+ String[] javaSpecificationVersion =
System.getProperty("java.specification.version").split("\\.");
+ Integer javaSpecificationMajorVersion = null;
+ try {
+ javaSpecificationMajorVersion =
Integer.valueOf(javaSpecificationVersion[0]);
+ } catch (NumberFormatException ex) {
+ LOG.log(
+ Level.WARNING,
+ "Failed to parse java.specification.version: {0}",
+ System.getProperty("java.specification.version")
+ );
+ }
Review Comment:
ok, understood
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists