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.
Summary: | MultifileSystem cache problem with overridden attributes (MulitFileObject) | ||
---|---|---|---|
Product: | platform | Reporter: | arittner <arittner> |
Component: | Filesystems | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | anebuzelsky, mmirilovic |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Other | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Tests that try, but fail to simulate the problem |
Description
arittner
2011-04-01 06:24:38 UTC
Same source code in NB 7.0rc1. Is it possible to fix it before 7 goes final? Unit test is better than demo application. (In reply to comment #2) > Unit test is better than demo application. Sorry, I will make this the next time. Created attachment 107480 [details]
Tests that try, but fail to simulate the problem
Hi! Cool, in the Dev-Builds the test works. But with 6.9.1 (I've downloaded the release691_fixes_base) the test fails with an assertion error. Testcase: testMultiFileSystemWithOverridenAttributes(org.openide.filesystems.XMLFileSystemTestHid): FAILED should be 200 still expected:<200> but was:<100> junit.framework.AssertionFailedError: should be 200 still expected:<200> but was:<100> at org.openide.filesystems.XMLFileSystemTestHid.testMultiFileSystemWithOverridenAttributes(XMLFileSystemTestHid.java:357) at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:95) at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:365) at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:294) at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:384) at org.netbeans.junit.NbTestCase.run(NbTestCase.java:228) at org.openide.filesystems.MultiThreadedTestCaseHid.run(MultiThreadedTestCaseHid.java:85) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at org.netbeans.junit.NbTestSetup$1.protect(NbTestSetup.java:64) at org.netbeans.junit.NbTestSetup$1.protect(NbTestSetup.java:64) at org.netbeans.junit.NbTestSetup.run(NbTestSetup.java:68) (your patch can be imported into release691_fixes_base, only fix imports for List/ArrayList is needed) However, I have no idea what was done in Dev, so it will work again. For a back-port it would be important to find it out. br, josh. OK, I integrated the test then: ergonomics#617757c16f7e can you verify the issue is fixed in trunk? Integrated into 'main-golden', will be available in build *201104070400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/617757c16f7e User: Jaroslav Tulach <jtulach@netbeans.org> Log: #197308: Test that seem to work in 7.0 but were broken in 6.9 |