Overview: Module build fails with an error when I use var keyword in a module class that uses aspectj-maven-plugin plugin with <configuration><complianceLevel>1.8
Steps to Reproduce:
- Open an API implementation class, e.g. org.folio.rest.impl.ServicePointsUserAPI in mod-inventory-storage;
- Add the var keyword somewhere in a class method, e.g. org.folio.rest.impl.ServicePointsUserAPI#deleteServicePointsUsers:
Set <complianceLevel>1.8</complianceLevel> in the configuration section of aspectj-maven-plugin
- build the project using maven - mvn clean install -DskipTests
Expected Results: Project built successfully.
Actual Results: Build failed with following error:
Additional Information: The Java 10 keyword 'var' works as expected in tests, but doesn't in production code.
Interested parties: Java devs.