-
Bug
-
Resolution: Done
-
Major
-
7.39.0.Final
-
None
-
1
-
NEW
-
NEW
-
2020 Week 25-27 (from Jun 15)
jbpm-workitems-webservice currently compiles to JDK 11 target with JDK 11:
<profiles> <profile> <id>jdk-11-compile</id> <activation> <jdk>[9,)</jdk> </activation> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <release>11</release> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> <profile> <id>jdk-8-compile</id> <activation> <jdk>(,9)</jdk> </activation> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>8</source> <target>8</target> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> </profiles>
We should have both JDK 8 and JDK 11 to compile always to JDK 8 target. This change was introduced to fix the annotation processor which doesn't work when JDK 11 is used with compilation target of JDK 8. However, I have found a workaround for that (explicitly stating the @WidAuth annotation on the annotated class).