You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The stacktrace in the file LANG-9B.log is not part of the actual bug in Apache Commons Lang. The bug in the LANG-9B.log is not patched by the fix as proposed in https://issues.apache.org/jira/browse/LANG-832.
--- org.apache.commons.lang3.time.FastDateFormat_ParserTest::testLANG_832
junit.framework.AssertionFailedError: Parsed dates should be equal expected:<null> but was:<Fri Jan 02 21:00:00 PST 1970>
at org.junit.Assert.fail(Assert.java:88)
...
Reproduction
Checkout the buggy version of LANG-9 defects4j checkout -p Lang -v 9b
Run the test suite defects4j test
Running ant (compile.tests)................................................ OK
Running ant (run.dev.tests)................................................ OK
Failing tests: 8
- org.apache.commons.lang3.time.FastDateFormat_ParserTest::testParseZone
- org.apache.commons.lang3.time.FastDateFormat_ParserTest::testLocales_Long_AD
- org.apache.commons.lang3.time.FastDateFormat_ParserTest::testLANG_832
- org.apache.commons.lang3.time.FastDateFormat_ParserTest::testLocales_Short_AD
- org.apache.commons.lang3.time.FastDateParserTest::testParseZone
- org.apache.commons.lang3.time.FastDateParserTest::testLocales_Long_AD
- org.apache.commons.lang3.time.FastDateParserTest::testLANG_832
- org.apache.commons.lang3.time.FastDateParserTest::testLocales_Short_AD
Opened by @svenpopping
The stacktrace in the file
LANG-9B.log
is not part of the actual bug in Apache Commons Lang. The bug in theLANG-9B.log
is not patched by the fix as proposed in https://issues.apache.org/jira/browse/LANG-832.The bug patched in https://issues.apache.org/jira/browse/LANG-832 is triggered in the test case
testLANG_832
. So theLANG-9B.log
should contain the stack-trace:Reproduction
Checkout the buggy version of LANG-9
defects4j checkout -p Lang -v 9b
Run the test suite
defects4j test
Running botsing using the https://github.com/STAMP-project/botsing-demo guide using the stack-trace https://github.com/SERG-Delft/JCrashPack/blob/master/crashes/Commons-lang/LANG-9b/LANG-9b.log. Add the generated test case to the LANG-9 test suite.
Re-run the test suite
defects4j test
Checkout the fix version of LANG-9 and add the generated test case from Botsing again
defects4j checkout -p Lang -v 9f
Run the test suite
defects4j test
So only the failing test case
testLANG_832
will be patched by the fix for LANG-9The text was updated successfully, but these errors were encountered: