[jboss-jira] [JBoss JIRA] (ELY-1642) Compilation error on JDK 11: cannot find class sun.reflect.Reflection
Jan Kalina (JIRA)
issues at jboss.org
Wed Aug 15 13:37:00 EDT 2018
[ https://issues.jboss.org/browse/ELY-1642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13619586#comment-13619586 ]
Jan Kalina commented on ELY-1642:
---------------------------------
For needs of running tests there is workaround to build in Java9 and to run tests in Java10:
{code}
JAVA_HOME=/opt/jdk-9/ PATH=$JAVA_HOME/bin/:$PATH mvn clean install
JAVA_HOME=/opt/jdk-10/ PATH=$JAVA_HOME/bin/:$PATH mvn test
{code}
> Compilation error on JDK 11: cannot find class sun.reflect.Reflection
> ---------------------------------------------------------------------
>
> Key: ELY-1642
> URL: https://issues.jboss.org/browse/ELY-1642
> Project: WildFly Elytron
> Issue Type: Bug
> Components: Security Manager
> Affects Versions: 1.5.1.Final
> Environment: openjdk version "11-ea" 2018-09-25
> OpenJDK Runtime Environment 18.9 (build 11-ea+25)
> OpenJDK 64-Bit Server VM 18.9 (build 11-ea+25, mixed mode)
> Reporter: Ondrej Kotek
> Priority: Critical
>
> {{mvn test}} results in compilation error:
> {noformat}
> [ERROR] /home/okotek/git/wildfly-elytron/src/main/java/org/wildfly/security/manager/WildFlySecurityManager.java:[58,19] cannot find symbol
> symbol: class Reflection
> location: package sun.reflect
> {noformat}
> Blocks testing on JDK 11, setting to Critical.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list