Datomic / janino-repro-3

Issue repro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible Bug in Janino

Starting with 3.0.7 (I suspect with this commit ), Janino appears unable to find some classes on the classpath.

This repro explores two almost identical cases:

  • a simple script that imports junit.framework.TestCase.
  • the exact same script, plus a class named junit.framework.nested.Breaker added to the classpath

The first script succeeds, while the second fails -- see example output.

Running the Repro

run ./run-repro from a bash shell.

Notes

  • Package names matter -- when I have encountered the problem, there is a class whose package name shares a prefix with the class to be imported.
  • Classpath order matters -- if you move target/classes to the end of the classpath both runs succeed.

About

Issue repro


Languages

Language:Java 61.8%Language:Shell 38.2%