[
https://issues.jboss.org/browse/ELY-1642?page=com.atlassian.jira.plugin.s...
]
David Lloyd commented on ELY-1642:
----------------------------------
As long as Java 8 support is required, this class needs to be referenced. Use the
jdk-misc artifact via compiler and dependency plugins to add these classes (see
https://github.com/wildfly/wildfly-common/blob/master/pom.xml#L116 for an example). Use
the MR JAR build approach to support both old and new APIs (requires that the latest
supported JDK be used for build, and that prior JDK(s) be available for test running).
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
Assignee: Justin Cook
Priority: Critical
Fix For: 1.7.0.CR1
{{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)