Fails to build on Java 11

Description

Environment:
Java:
openjdk 11.0.8 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Debian-1deb10u1)
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Debian-1deb10u1, mixed mode, sharing)

Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 11.0.8, vendor: Debian, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.19.0-10-amd64", arch: "amd64", family: "unix"

Gradle 4.4.1
Build time: 2012-12-21 00:00:00 UTC
Revision: none
Groovy: 2.4.16
Ant: Apache Ant(TM) version 1.10.5 compiled on August 27 2018
JVM: 11.0.8 (Debian 11.0.8+10-post-Debian-1deb10u1)
OS: Linux 4.19.0-10-amd64 amd64

Steps to Reproduce:
git clone
cd into directory
mvn -B clean install

Output (cut):
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$Ref
lectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoade
r.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.
internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflect
ive access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< org.folio:mod-circulation >---------------------
[INFO] Building mod-circulation 19.1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.github.jknack:handlebars:jar:4.0.7 is invalid, transit
ive dependencies (if any) will not be available, enable debug logging for more d
etails
[WARNING] The POM for com.github.jknack:handlebars-helpers:jar:4.0.7 is invalid,
transitive dependencies (if any) will not be available, enable debug logging fo
r more details

... 180 MB curl and other horseshit - can be provided ...

[ERROR] Failures:
[ERROR] MoveRequestPolicyTests.moveRecallRequestWithExistingRecallsAndWithMGDA
ndRDValuesChangesDueDateToRD:377
Expected: is <1>
but: was <2>
[ERROR] MoveRequestPolicyTests.moveRecallRequestWithExistingRecallsAndWithNoPo
licyValuesChangesDueDateToSystemDate:236
Expected: is <1>
but: was <2>
[ERROR] MoveRequestPolicyTests.moveRecallRequestWithoutExistingRecallsAndWithMGDAndRDValuesChangesDueDateToRD:299
Expected: is <0>
but: was <1>
[ERROR] MoveRequestPolicyTests.moveRecallRequestWithoutExistingRecallsAndWithNoPolicyValuesChangesDueDateToSystemDate:174
Expected: is <0>
but: was <1>
[INFO]
[ERROR] Tests run: 2075, Failures: 4, Errors: 0, Skipped: 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13:53 min
[INFO] Finished at: 2020-09-10T12:14:33+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project mod-circulation: There are test failures.
[ERROR]
...

Environment

None

Potential Workaround

None

relates to

Checklist

hide

TestRail: Results

Activity

Show:

Marc JohnsonSeptember 11, 2020 at 10:53 AM

Consider it a request to support Java 11, as it's the latest LTS.

In which case I have changed this to a task (it is not a bug because the module makes no statement of support for Java 11) and have closed it as a duplicate because FOLIO has already decided to move towards supporting Java 11 and that work is planned for the Honeysuckle release.

Johannes DrexlSeptember 11, 2020 at 6:47 AM

Consider it a request to support Java 11, as it's the latest LTS.

Marc JohnsonSeptember 10, 2020 at 10:40 AM

Please can you provide more context as to why you are raising these issues?

FOLIO has already decided to support Java 11 and it is being worked on during this release. I don't understand why you are raising further issues relating to this.

cc:

Duplicate

Details

Assignee

Reporter

Priority

Development Team

None

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created September 10, 2020 at 10:35 AM
Updated September 11, 2020 at 10:53 AM
Resolved September 10, 2020 at 10:40 AM
TestRail: Cases
TestRail: Runs