Loading CommandLine$DefaultFactory fails on Windows?!
See original GitHub issueHi!
I just created the following issue at https://bugs.openjdk.java.net/browse/JDK-8234076 to determine the underlying cause of a Windows-only fatal error when launching JUnit 5’s Console Launcher. That in turn uses Picocli version 4.0.2
, I guess.
Sometimes(!) a run either crashes silently or creates a hs_err_pid...log
file and the last class that was loaded is:
[0.278s][info][class,load] org.junit.platform.console.shadow.picocli.CommandLine$IExecutionExceptionHandler source: file:/.../lib/org.junit.platform.console-1.6.0-M1.jar
Sometimes(!) the run continues with CommandLine$DefaultFactory
and the entire program execution succeeds.
[0.231s][info][class,load] org.junit.platform.console.shadow.picocli.CommandLine$DefaultFactory source: file:/.../lib/org.junit.platform.console-1.6.0-M1.jar
Could this be related to #794?
Reproduction
- Clone https://github.com/sormuras/bach-air - and switch to branch
JDK-8234076
. - Call
java src\bach\Build.java
. Sometimes it runs, sometimes not.
CI
- Java 11 https://github.com/sormuras/bach-air/runs/300828140
- Java 13 https://github.com/sormuras/bach-air/runs/300828148
Issue Analytics
- State:
- Created 4 years ago
- Comments:24 (8 by maintainers)
Hi @sormuras that looks nasty. I’ve looked at the JDK ticket but nothing jumped out at me yet. I will try to reproduce this tomorrow.
About your question: I am fairly sure that #794 is not related. The annotation processor only runs at compile time, while the issue you describe happens at runtime.
Very nice!!