Skip to content
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

Support newer JDK versions #908

Closed
SchnWalter opened this issue Jan 28, 2020 · 3 comments
Closed

Support newer JDK versions #908

SchnWalter opened this issue Jan 28, 2020 · 3 comments

Comments

@SchnWalter
Copy link

SchnWalter commented Jan 28, 2020

Feature Request

Cordova should support newer JDK versions. In pull request #446 a check was introduced to enforce the JDK version but no real reasoning was provided.

Motivation Behind Feature

Oracle has announced that the End of Public Updates of Java SE 8 is on December 2020.

Feature Description

Now that the JAVA 8 EOL is near, I think that all the issues in newer JDKs should be documented and a new tag should be added just for issues that prevent JDK updates.

@SchnWalter SchnWalter changed the title Support newer JDK version Support newer JDK versions Jan 28, 2020
@erisu
Copy link
Member

erisu commented Jan 28, 2020

Some other information to know is that Android Studio still uses OpenJDK 8 (openjdk version "1.8.0_202-release"). It does not use the Oracle's version if installed. It has its own bundled version.

If any changes were made, I suspect it to be for supporting OpenJDK 8 to be in line with what Android Studio uses. IMO.

@breautek
Copy link
Contributor

The current version of Gradle that cordova-android requires also depends on java 8. Although in cordova-android@9, it will be using gradle 6.x, and they added support for up to JDK13.

Android Studio expects you to use Java 8. They don't officially support higher versions of java. So I believe this makes android studio the only blocker for a JDK upgrade. It doesn't mean android studio won't work in a higher JDK version, but it won't be guaranteed.

Android's docs where they talk about this can be found here

@jcesarmobile
Copy link
Member

Android doesn’t use oracles java but their own implementation, which at the moment is like java 8. So this is an android limitation, not something cordova can fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants