The following happens sometimes when running tests:
[junit] Testcase: testChoose(org.apache.commons.jelly.tags.junit.CaseTag$1): Caused an ERROR
[junit] null:-1:-1: <null> Attempt to use a script that has been garbage collected.
[junit] org.apache.commons.jelly.JellyTagException: null:-1:-1: <null> Attempt to use a script that has been garbage collected.
[junit] at org.apache.commons.jelly.impl.WeakReferenceWrapperScript.script(WeakReferenceWrapperScript.java:62)
[junit] at org.apache.commons.jelly.impl.WeakReferenceWrapperScript.run(WeakReferenceWrapperScript.java:74)
[junit] at org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59)
It combines a defined tag and an included script, quite a common situation, e.g. for Maven.
I could not find a way to reproduce the bug with only one of the two ingredients.
Invoke it with "java -jar target/fatJelly.jar blop.jelly".
paul
PS: this comment was first done on
JELLY-85... it might also be done onJELLY-148where the patch was first prestentedPPS: we badly need to be able to link issues, that's a feature that "just needs to be enabled" in the jira.