JDK-8130246 : java/util/Currency/PropertiesTest.sh fails Exception java.lang.NullPointerException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2015-07-01
  • Updated: 2016-06-13
  • Resolved: 2015-12-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b96Fixed
Related Reports
Relates :  
Relates :  
Description
JDK 9 b71 PIT testing

Quoting jtr file:
Format is not recognized.
Testing key: US, val: euR,978,2,2001-01-01T00:00:00... AfterVal is : null
Exception in thread "main" java.lang.NullPointerException
	at java.util.regex.Matcher.getTextLength(Matcher.java:1746)
	at java.util.regex.Matcher.reset(Matcher.java:402)
	at java.util.regex.Matcher.<init>(Matcher.java:244)
	at java.util.regex.Pattern.matcher(Pattern.java:1100)
	at PropertiesTest.compare(PropertiesTest.java:147)
	at PropertiesTest.main(PropertiesTest.java:34)

1 tests failed

The full jtr attached
Comments
Working upon on assumption that Its getting caused by a race condition due to process spawning introduced..
05-11-2015

It could be that the test case modification to 8003846 fix caused this bug. Before the fix, invocations of java processes in PropertiesTest.sh were sequential so that comparing the dump files (dump1, 2, 3) were in the right order. With the fix to 8003846, they are now spawned with "sh" which introduces a race condition.
21-10-2015

The very similar problem described in JDK-8076559, but this time only one test failed
01-07-2015