[ https://issues.apache.org/jira/browse/ARTEMIS-3302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17388088#comment-17388088 ]
Robbie Gemmell commented on ARTEMIS-3302: ----------------------------------------- The above instances belong to these 16 files: {noformat} activemq-artemis/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/CertificateUtil.java activemq-artemis/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/CertificateUtil.java activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/impl/SecurityStoreImpl.java activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/ActiveMQSecurityManager2.java activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateCallback.java activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/ExternalCertificateLoginModule.java activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/TextFileCertificateLoginModule.java activemq-artemis/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/StubCertificateLoginModule.java activemq-artemis/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/StubX509Certificate.java activemq-artemis/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/TextFileCertificateLoginModuleTest.java activemq-artemis/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SslBrokerServiceTest.java activemq-artemis/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/StubSSLSession.java activemq-artemis/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/SecurityTest.java activemq-artemis/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ssl/CoreClientOverTwoWaySSLTest.java {noformat} > various use of deprecated-for-removal javax.security.cert.X509Certificate > ------------------------------------------------------------------------- > > Key: ARTEMIS-3302 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3302 > Project: ActiveMQ Artemis > Issue Type: Bug > Affects Versions: 2.17.0 > Reporter: Robbie Gemmell > Priority: Critical > Time Spent: 10m > Remaining Estimate: 0h > > The codebase is using javax.security.cert.X509Certificate in various places. > This was noted superceded by the java.security.cert replacement since ~Java > 1.4, and marked deprecated in Java 9 along with the entire > javax.security.cert package. The deprecation was raised to for-removal status > in Java 13 [1]. > Building using Java 16 [2] without using the -release flag (which doesnt > actually work for Artemis due to API usages that -release doesnt permit) > means the build uses the Java 16 signatures when compiling regardless what > the -target version is, which has the side effect of helpfully pointing out a > lot of deprecated-for-removal APIs that the codebase is still using. > [1] https://bugs.openjdk.java.net/browse/JDK-8160247 > [2] > https://github.com/apache/activemq-artemis/runs/2598974966?check_suite_focus=true -- This message was sent by Atlassian Jira (v8.3.4#803005)