This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 235396

Summary: Failing org.netbeans.core.startup.layers.CachingPreventsFileTouchesTest.testInMiddle
Product: platform Reporter: Jiri Skrivanek <jskrivanek>
Component: Module SystemAssignee: Jaroslav Tulach <jtulach>
Severity: normal CC: jrechtacek, mmirilovic
Priority: P2 Keywords: NO74, TEST
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Jiri Skrivanek 2013-09-02 09:51:51 UTC
Please, fix failing org.netbeans.core.startup.layers.CachingPreventsFileTouchesTest.testInMiddle. It fails 26 times in row on deadlock:

Reproduced also locally in main repository (cf8ba9a7b7c4):

ant -k -f core.startup test test-generate-html -Dtest.includes=**/CachingPreventsFileTouchesTest.class

Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b40
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 Marian Mirilovic 2013-09-09 11:22:22 UTC
Jarda, please evaluate in 7.4 .
Comment 2 Jiri Skrivanek 2013-09-10 07:03:20 UTC
If test failure does not mean bug in core.startup functionality, please fix the test only in dev version.
Comment 3 Jaroslav Tulach 2013-09-10 08:37:43 UTC
Still investigating when the test started to fail. But given the nature of the failure, it is unlikely this is a problem in the code.
Comment 4 Jaroslav Tulach 2013-09-10 10:58:47 UTC
So far I know the test passes OK in release73 @ JDK1.6. The test fails on release73 @ 1.7.0_25-b15. There must be something wrong in JDK7's logging configuration.
Comment 5 Jaroslav Tulach 2013-09-10 11:20:37 UTC
JDK7 has something called "LoggerContext" and the test setup and test execution disagree on the context. Thus the test execution does not use the logger configured by the setup.
Comment 6 Jaroslav Tulach 2013-11-19 08:53:22 UTC

btw. also started to fail on recent JDK7 - u40 I guess.