[jboss-jira] [JBoss JIRA] (ELY-1994) Ensure the Elytron build works on Java 14

Sonia Zaldana (Jira) issues at jboss.org
Fri Jun 26 11:41:08 EDT 2020


    [ https://issues.redhat.com/browse/ELY-1994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14178334#comment-14178334 ] 

Sonia Zaldana commented on ELY-1994:
------------------------------------

The impact is mainly related to _java.security.acl.Group_. 

Overview: 
 * _TestLoginModule.java_: A _Group_ implementation is used in the tests to store the caller principal.
 * _JaasSecurityRealm.java_:  _JaasSecurityRealm#getCallerPrincipal_ looks for a _Group_ and returns the first principal in the group. 

The _java.security.acl_ package has been replaced with [java.security.policy|[https://docs.oracle.com/javase/7/docs/api/java/security/Policy.html]] but I don't see a straightforward way to switch to the alternative. 

> Ensure the Elytron build works on Java 14
> -----------------------------------------
>
>                 Key: ELY-1994
>                 URL: https://issues.redhat.com/browse/ELY-1994
>             Project: WildFly Elytron
>          Issue Type: Task
>          Components: Testsuite
>            Reporter: Darran Lofthouse
>            Priority: Major
>             Fix For: 1.13.0.CR2
>
>
> Overall the build is not doing too badly and doesn't fail until we get to the main testsuite.
>  
> {code:java}
> [INFO] WildFly Elytron - Tests ............................ FAILURE [  1.447 s]
> [INFO] WildFly Elytron .................................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  01:46 min
> [INFO] Finished at: 2020-06-11T11:25:23+01:00
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0-jboss-1:testCompile (default-testCompile) on project wildfly-elytron-tests: Compilation failure: Compilation failure: 
> [ERROR] /home/darranl/src/community/wildfly-elytron/tests/base/src/test/java/org/wildfly/security/auth/TestLoginModule.java:[31,25] package java.security.acl does not exist
> [ERROR] /home/darranl/src/community/wildfly-elytron/tests/base/src/test/java/org/wildfly/security/auth/TestLoginModule.java:[107,40] cannot find symbol
> [ERROR]   symbol:   class Group
> [ERROR]   location: class org.wildfly.security.auth.TestLoginModule
> [ERROR] -> [Help 1] {code}
> If this is all that is failing for us maybe we can revisit the test and see how appropriate it is and if it can be adapted to use available APIs.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)



More information about the jboss-jira mailing list