Uploaded image for project: 'WildFly Transaction Client'
  1. WildFly Transaction Client
  2. WFTC-49

Compilation failure on Java 9+

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.0.Final
    • None
    • None

      The failure:

      [ERROR] /home/david/src/java/wildfly-transaction-client/src/main/java/org/wildfly/transaction/client/provider/remoting/TransactionServerChannel.java:[220,25] reference to runAs is ambiguous
        both method <T>runAs(java.security.PrivilegedAction<T>) in org.wildfly.security.auth.server.SecurityIdentity and method <T>runAs(java.security.PrivilegedExceptionAction<T>) in org.wildfly.security.auth.server.SecurityIdentity match
      [ERROR] /home/david/src/java/wildfly-transaction-client/src/main/java/org/wildfly/transaction/client/provider/remoting/TransactionServerChannel.java:[220,31] incompatible types: cannot infer type-variable(s) T
          (argument mismatch; bad return type in lambda expression
            missing return value)
      [INFO] 2 errors 
      

              dlloyd@redhat.com David Lloyd
              dlloyd@redhat.com David Lloyd
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: