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 67385 - Wrong synchronization in MemoryFS
Summary: Wrong synchronization in MemoryFS
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: rmatous
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2005-10-24 08:44 UTC by Jaroslav Tulach
Modified: 2008-12-22 19:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2005-10-24 08:44:41 UTC
I've got following exception while running DataShadowTest:   
   
testFindOriginalFromAnonymousFilesystem:  
      java.util.ConcurrentModificationException  
        at java.util.Hashtable$Enumerator.next(Hashtable.java:980)  
        at  
org.openide.filesystems.MemoryFileSystem.children(MemoryFileSystem.java:152)  
        at  
org.openide.filesystems.AbstractFileObject.list(AbstractFileObject.java:80)  
        at  
org.openide.filesystems.AbstractFolder.getNewChildren(AbstractFolder.java:832)  
        at  
org.openide.filesystems.AbstractFolder.refreshFolder(AbstractFolder.java:686)  
        at  
org.openide.filesystems.AbstractFolder.refresh(AbstractFolder.java:874)  
        at  
org.openide.filesystems.AbstractFileObject.refresh(AbstractFileObject.java:766)  
        at  
org.openide.filesystems.AbstractFileObject.refresh(AbstractFileObject.java:748)  
        at  
org.openide.filesystems.AbstractFolder.check(AbstractFolder.java:582)  
        at  
org.openide.filesystems.AbstractFolder.getChildren(AbstractFolder.java:200)  
        at  
org.openide.filesystems.MultiFileObject.list(MultiFileObject.java:347)  
        at  
org.openide.filesystems.AbstractFolder.getNewChildren(AbstractFolder.java:832)  
        at  
org.openide.filesystems.AbstractFolder.refreshFolder(AbstractFolder.java:686)  
        at  
org.openide.filesystems.AbstractFolder.refresh(AbstractFolder.java:874)  
        at  
org.openide.filesystems.AbstractFolder.refresh(AbstractFolder.java:649)  
        at  
org.openide.filesystems.MultiFileObject.refresh(MultiFileObject.java:413)  
        at  
org.openide.filesystems.AbstractFolder.check(AbstractFolder.java:582)  
        at  
org.openide.filesystems.AbstractFolder.getChildren(AbstractFolder.java:200)  
        at  
org.openide.filesystems.MultiFileObject.createFolder(MultiFileObject.java:947)  
        at org.openide.filesystems.FileUtil.createFolder(FileUtil.java:260)  
        at  
org.openide.filesystems.MultiFileObject.createFolder(MultiFileObject.java:929)  
        at org.openide.filesystems.FileUtil.createFolder(FileUtil.java:260)  
        at org.openide.filesystems.FileUtil.createData(FileUtil.java:320)  
        at org.openide.loaders.DataShadowTest.setUp(DataShadowTest.java:63)  
        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  
org.openide.loaders.LoggingTestCaseHid.run(LoggingTestCaseHid.java:55)  
        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 Jaroslav Tulach 2005-10-24 08:45:26 UTC
Radek, if you have other work, assign to me, I can write a test and fix it. 
Comment 2 rmatous 2005-10-24 09:16:54 UTC
/cvs/openide/fs/src/org/openide/filesystems/MemoryFileSystem.java,v  <--  new
revision: 1.7; previous revision: 1.6