4 Replies Latest reply on Nov 28, 2016 4:22 AM by Eduard Dedu

    Wildfly 10.1 build fails with compilation errors in Weld Subsystem

    Eduard Dedu Newbie

      Benevolent reader,

       

      I have synced the master branch in my local WildFly repository with the upstream master branch.

       

      Now HEAD is at commit f9e868**** - Merge pull request #9419 from gytis/master-WFLY-7514.

       

      Next I tried to build WildFly with:

                 mvn clean install -e -DskipTests

       

      The build fails. It looks  like a number of methods are invoked with arguments that do not match the expected parameters:

       

      Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project wildfly-weld: Compilation failure: Compilation failure:

      [ERROR] ****/wildfly/weld/subsystem/src/main/java/org/jboss/as/weld/deployment/BeanDeploymentArchiveImpl.java:[99,33] method add in interface org.jboss.weld.bootstrap.api.ServiceRegistry cannot be applied to given types;

      [ERROR] required: java.lang.Class<S>,S

      [ERROR] found: java.lang.Class<capture#1 of ? extends org.jboss.weld.bootstrap.api.Service>,java.lang.Object

      [ERROR] reason: inference variable S has incompatible bounds

      [ERROR] equality constraints: capture#1 of ? extends org.jboss.weld.bootstrap.api.Service

      [ERROR] lower bounds: T

       

       

      I'm using Java 1.8 and Maven 3.3.9 on a MacBook running OSX El Capitan (10.11.6). I also have an active jboss-developer-repository profile defined in the global maven settings.xml config.

       

      My question is, should I submit a report about this problem in the WildFly issue tracker? It looks like a major thing.

       

      PS: Sorry for the newbie question, just want to make sure I'm not missing something here.