-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java 11 compatibility required #5162
Comments
@davidgraeff When will openHAB have a strict requirement on Java 11. Will that transition happen in next version? Need to know that so we can have migration code ready in openhabian. |
Not this year. The core and majority of bindings will be Java 8 and 11 compatible, that's the goal. But I remember a discussion with Kai that certain bundles may be allowed to require more than Java 8 (my question at that time was regarding the DTLS support which greatly improved in Java 9). |
Nice, that gives us a great update window. When does openHAB aim be java 11 compatible™, i.e. when can we start the transition to Java 11? |
That depends on how important openhab1-addon users are to you, because we will not migrate those bindings anymore. As soon as you switch over to 11 half of those bindings will fail probably :/ At the moment it looks like OH 2.5 Core and Addons (minus the OH1-combat layer) will be java 11 compatible. |
Currently nrjavaserial (required by all bindings using serial comms) crashes the whole runtime on Windows with Java 11 (NeuronRobotics/nrjavaserial#131). So I'd like to see that fixed too before declaring openHAB to be Java 11 compatible. Most known issues are linked to openhab/openhab-distro#768. Hopefully the visibility of this issue also makes contributors create PRs for better Java 11 compatibility. :-) Most Travis CI builds now also have a Java 11 build so it has become more visible what still needs to be fixed. |
Can you confirm that the proposed fix indeed is everything that is needed in nrjavaserial? The linked issues seems to state that there are more problems. |
I'm only occasionally using Windows myself. So I haven't thoroughly tested the nrjavaserial Java 11 Windows fix myself. |
What exactly is the problem with homematic? It compiles and passes feature verification on Java 11 without modification. |
Tick it off ^^ |
Maybe it is a false positive because of |
Now that #5338 is merged we enforce that all code compiles with Java 11. The add-ons that were still open in the list use the javax.xml.xpath, javax.ws.rs packages which are still available in Java 11. See Dependencies On Java EE Modules for all packages that are impacted. |
Has someone changed Travis already to enforce j11? Then we can close this issue |
I see consistent JVM crashes on windows due to the nrjavaserial issue with Java 11 (NeuronRobotics/nrjavaserial#131) as mentioned by @wborn. I am working on the zwave addon Is this problem being tracked in a different issue as this one is closed? |
There's also a openhab/openhab-distro#768 (comment) for this. That's the overarching issue to fix issues encountered while running openHAB with Java 11. |
All new add-ons must be compatible to Java 11 without deprecation warnings from here on.
To be ported:
The text was updated successfully, but these errors were encountered: