aboi-83 commented on issue #6606:
URL: https://github.com/apache/netbeans/issues/6606#issuecomment-2027095704
I think the problem is related to the library
netbeans\enterprise\modules\ext\glassfish-jspparser-5.1.0.jar.
I decompiled the jar and the max supported versione is 1.8:
```
public void setCompilerTargetVM(String vm) {
String tvm = vm;
if ("5".equals(vm)) {
vm = "1.5";
} else if ("6".equals(vm)) {
vm = "1.6";
} else if ("7".equals(vm)) {
vm = "1.7";
} else if ("8".equals(vm)) {
vm = "1.8";
}
if (!"1.1".equals(vm) && !"1.2".equals(vm) && !"1.3".equals(vm) &&
!"1.4".equals(vm) && !"1.5".equals(vm) && !"1.6".equals(vm) &&
!"1.7".equals(vm) && !"1.8".equals(vm)) {
throw new
IllegalArgumentException(Localizer.getMessage("jspc.illegalCompilerTargetVM",
tvm));
} else {
Double targetVersion = Double.valueOf(vm);
if (targetVersion.compareTo(Double.valueOf(myJavaVersion)) > 0) {
throw new
IllegalArgumentException(Localizer.getMessage("jspc.compilerTargetVMTooHigh",
vm));
} else {
this.compilerTargetVM = vm;
}
}
}
```
The problem is still present in Netbeans 21.
--
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