[jboss-jira] [JBoss JIRA] (ELY-1473) Java 9: Use new Provider(String, String, String) constructor

David Lloyd (JIRA) issues at jboss.org
Thu Dec 21 19:12:00 EST 2017


David Lloyd created ELY-1473:
--------------------------------

             Summary: Java 9: Use new Provider(String,String,String) constructor
                 Key: ELY-1473
                 URL: https://issues.jboss.org/browse/ELY-1473
             Project: WildFly Elytron
          Issue Type: Enhancement
            Reporter: David Lloyd


Starting from Java 9, Provider instances no longer have a version of type {{double}}; instead it is a plain string.  We can start to supply the actual Elytron version string for this parameter, in Java 9.

To have Java 8 and Java 9 versions of this class, an intermediate superclass must be introduced which extends Provider, which can be overridden in a Java 9 supplement.  On Java 8, the [emulation logic|https://github.com/dmlloyd/openjdk/commit/3f86236207573314e25bf70090da5d5eeaab22c2#diff-d651c09ffa9138367a291f166bfab7f5R182] from Java 9 (or something similar) is used to construct a {{double}} from the version string.  On Java 9, the literal version string is used.

Developing a Java 9 supplement for Elytron is a prerequisite to this task.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list