Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9028

jbpm-workitems-webservice module doesn't compile with JDK 11

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.34.0.Final
    • Remote Services
    • None
    • NEW
    • NEW
    • Workaround Exists
    • Hide

      Specifying "release" tag in the configuration section for "maven-compiler-plugin" plugin works fine:

      </plugin>
      </configuration>
      ...
      <release>11</release>
      </configuration>
      </plugin>

      Show
      Specifying "release" tag in the configuration section for "maven-compiler-plugin" plugin works fine: </plugin> </configuration> ... <release>11</release> </configuration> </plugin>
    • Hide

      1. Get the latest master branch in GIT for the jbpm project.
      2. Set your java home to your openjdk 11
      3. Run mvn clean install -DskipTests

      Show
      1. Get the latest master branch in GIT for the jbpm project. 2. Set your java home to your openjdk 11 3. Run mvn clean install -DskipTests

      When using Open JDK 11 and running maven command "mvn clean install -DskipTests", module "jbpm-workitems-webservice" fails when trying to compile with the following error message:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jbpm-workitems-webservice: Compilation failure
      [ERROR] Error post-processing workitem annotations: Incorrectly typed data found for annotation element public abstract org.jbpm.process.workitem.core.util.service.WidAuth org.jbpm.process.workitem.core.util.service.WidService.authinfo() (Found data of type org.jbpm.process.workitem.core.util.service.WidAuth).
      [ERROR]

      It works fine with JDK 1.8 though.

      I noticed in pom.xml when specifying "release" tag in the configuration section for "maven-compiler-plugin" plugin works fine:

      </plugin>
      </configuration>
      ...
      <release>11</release>
      </configuration>
      </plugin>

              gmunozfe@redhat.com Gonzalo Muñoz Fernández
              antferna Antonio Fernandez Alhambra (Inactive)
              Antonio Fernandez Alhambra Antonio Fernandez Alhambra (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: