Changes in sun.security.x509.AlgorithmId in JDK 15
See original GitHub issueSystem information:
Mac OS X 10.14.6 JDK version OpenJDK 15.0.1+9
Connection specification:
n/a
Describe the problem you’re observing:
- Building DbBeaver fails on JDK 15 because
sun.security.x509.AlgorithmId
, an internal JDK class, was changed. - This also means that users cannot run DbBeaver or CloudBeaver on JDK 15, unless CertificateGenHelper is never called.
The field md5WithRSAEncryption_oid
no longer exists, and as a result, CertificateGenHelper cannot compile.
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.0.0:compile (default-compile) on project org.jkiss.dbeaver.model: Compilation failure: Compilation failure:
[ERROR] /Users/anandbeh/git/SolarMC/dbeaver/plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/impl/app/CertificateGenHelper.java:[69]
[ERROR] AlgorithmId algo = new AlgorithmId(AlgorithmId.md5WithRSAEncryption_oid);
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] md5WithRSAEncryption_oid cannot be resolved or is not a field
Downgrading to OpenJDK 11 is a temporary workaround.
Steps to reproduce, if exist:
I discovered this while trying to set up CloudBeaver.
- Use JDK 11
- Follow the CloudBeaver’s Build and Deploy after requirements are installed
- Observe build failure
Include any warning/errors/backtraces from the logs
Full output of running CloudBeaver’s build.sh
, including maven build of DbBeaver:
See also
https://github.com/playframework/playframework/issues/10478 https://github.com/openjdk/jdk/commit/080b3b83ebffe5149fbc9ac48e921fb5
Issue Analytics
- State:
- Created 3 years ago
- Comments:23 (12 by maintainers)
Top Results From Across the Web
X509Certificate (Java SE 14 & JDK 14) - Oracle Help Center
Abstract class for X.509 v1 certificates. This provides a standard way to access all the version 1 attributes of an X.509 certificate.
Read more >jdk/jdk: d54ce919da90
files, src/java.base/share/classes/sun/security/x509/AlgorithmId.java ... diffstat, 2 files changed, 16 insertions(+), 7 deletions(-) [+].
Read more >[JDK-8266929] Unable to use algorithms from 3p providers - Java ...
The change for “JDK-8249906, CVE-2021-2163: Enhance opening JARs” exposes a problem ... +++ b/src/java.base/share/classes/sun/security/x509/AlgorithmId.java
Read more >JDK-8266929 Unable to use algorithms from 3p providers
Opening on behalf of Dan Lutker <lutkerd@amazon.com> The change for ... oidTable(AlgorithmId.java:628) at java.base/sun.security.x509.
Read more >Djava.system.class.loader' on JDK 11.0.11, if ... - Stack Overflow
oidTable(AlgorithmId.java:627) at java.base/sun.security.x509. ... What happens if you change the Java version or run the application from ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We had some thoughts about that. But even using its lightweight API the binary size is still inappropriate 😦
Currently we’re looking towards using the
keytool
command-line utility which is bundled with Java.Verified