picocli: Loading CommandLine$DefaultFactory fails on Windows?!

Hi!

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

CI

image

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24 (8 by maintainers)

Most upvoted comments

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.