[ 
https://issues.apache.org/jira/browse/ARTEMIS-3302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17388085#comment-17388085
 ] 

Robbie Gemmell commented on ARTEMIS-3302:
-----------------------------------------

Related instances needing updated:
{quote}[WARNING] 
/path.to/activemq-artemis/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/CertificateUtil.java:[29,18]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/CertificateUtil.java:[29,18]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/CertificateUtil.java:[29,18]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/CertificateUtil.java:[29,18]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/CertificateUtil.java:[30,7]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/CertificateUtil.java:[35,60]
 getPeerCertificateChain() in javax.net.ssl.SSLSession has been deprecated and 
marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/CertificateUtil.java:[34,18]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/CertificateUtil.java:[34,18]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/CertificateUtil.java:[34,18]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/CertificateUtil.java:[34,18]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/CertificateUtil.java:[35,7]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java:[596,10]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/ExternalCertificateLoginModule.java:[69,7]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java:[46,12]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java:[46,12]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java:[46,12]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java:[46,12]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java:[157,57]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java:[157,57]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java:[157,57]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java:[157,57]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java:[169,48]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java:[169,48]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java:[169,48]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java:[169,48]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateCallback.java:[29,4]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateCallback.java:[29,4]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateCallback.java:[29,4]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateCallback.java:[29,4]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateCallback.java:[36,32]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateCallback.java:[36,32]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateCallback.java:[36,32]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateCallback.java:[36,32]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateCallback.java:[45,11]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateCallback.java:[45,11]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateCallback.java:[45,11]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateCallback.java:[45,11]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/impl/SecurityStoreImpl.java:[209,7]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/TextFileCertificateLoginModule.java:[73,54]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/TextFileCertificateLoginModule.java:[73,54]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/TextFileCertificateLoginModule.java:[73,54]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/TextFileCertificateLoginModule.java:[73,54]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/ActiveMQSecurityManager2.java:[46,55]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/ActiveMQSecurityManager2.java:[46,55]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/ActiveMQSecurityManager2.java:[46,55]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/ActiveMQSecurityManager2.java:[46,55]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/StubX509Certificate.java:[26,42]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/StubX509Certificate.java:[26,42]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/StubX509Certificate.java:[26,42]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/StubCertificateLoginModule.java:[31,4]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/StubCertificateLoginModule.java:[31,4]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/StubCertificateLoginModule.java:[31,4]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/StubCertificateLoginModule.java:[39,48]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/StubCertificateLoginModule.java:[39,48]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/StubCertificateLoginModule.java:[39,48]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/TextFileCertificateLoginModuleTest.java:[133,7]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/TextFileCertificateLoginModuleTest.java:[140,52]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/SecurityTest.java:[2097,44]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ssl/CoreClientOverTwoWaySSLTest.java:[208,72]
 getPeerCertificateChain() in javax.net.ssl.SSLSession has been deprecated and 
marked for removal
 [WARNING] 
/path.to/activemq-artemis/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/StubSSLSession.java:[110,49]
 getPeerCertificateChain() in javax.net.ssl.SSLSession has been deprecated and 
marked for removal
 [WARNING] 
/path.to/activemq-artemis/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/StubSSLSession.java:[110,30]
 javax.security.cert.X509Certificate in javax.security.cert has been deprecated 
and marked for removal
 [WARNING] 
/path.to/activemq-artemis/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SslBrokerServiceTest.java:[149,39]
 getPeerCertificateChain() in javax.net.ssl.SSLSession has been deprecated and 
marked for removal
{quote}

> 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)

Reply via email to