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 66208 - MemoryFileSystem.fileAlreadyExists
Summary: MemoryFileSystem.fileAlreadyExists
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: rmatous
URL: http://beetle.czech:8080/unittest/Tes...
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2005-10-07 07:29 UTC by Jaroslav Tulach
Modified: 2008-12-22 23:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Failure on 20060531 (16.68 KB, text/html)
2006-05-31 12:54 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2005-10-07 07:29:26 UTC
Something is still wrong with MemoryFileSystem. Radek, can you add logging 
there so we can investigate where the problem is? 
    
DataFolderIndexTest.testIndexWithoutInitializationInReadAccess:   
      java.io.IOException: File already exists   
        at   
org.openide.filesystems.MemoryFileSystem.createData(MemoryFileSystem.java:160)   
        at   
org.openide.filesystems.AbstractFileObject.createData(AbstractFileObject.java:422)   
        at org.openide.filesystems.FileObject.createData(FileObject.java:631)   
        at   
org.openide.loaders.DataFolderIndexTest.setUp(DataFolderIndexTest.java:68)   
        at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:132)   
        at junit.framework.TestResult$1.protect(TestResult.java:106)   
        at junit.framework.TestResult.runProtected(TestResult.java:124)   
        at junit.framework.TestResult.run(TestResult.java:109)   
        at junit.framework.TestCase.run(TestCase.java:118)   
        at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122)   
        at junit.framework.TestSuite.runTest(TestSuite.java:208)   
        at junit.framework.TestSuite.run(TestSuite.java:203)   
        at   
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:167)   
        at   
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:118)   
        at   
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41)
Comment 1 rmatous 2005-10-20 16:47:45 UTC
/cvs/openide/fs/src/org/openide/filesystems/MemoryFileSystem.java,v  <--  new
revision: 1.6; previous revision: 1.5

LoggingTestCaseHid.runTest catches AssertionFailedError but IOException from
MemoryFileSystem seems not to be catched here. Jardo, please evaluate & fix
LoggingTestCaseHid if I'm right.

Closed as WORKSFORME. Will be reopened as soon as unit test fails again with
logging information.
Comment 2 Jaroslav Tulach 2006-05-31 12:50:32 UTC
New failure.
Comment 3 Jaroslav Tulach 2006-05-31 12:54:15 UTC
Created attachment 30698 [details]
Failure on 20060531
Comment 4 rmatous 2006-09-15 15:17:04 UTC
I didn't find in xtest history no one failing test any more. This bug can't be
reproduced. So, WORKSFORME - will be reopened as soon as this test fails again.