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 140681 - Schema view tree structure corruption after adding a second attribute to an element.
Summary: Schema view tree structure corruption after adding a second attribute to an e...
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Model (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on: 140801
Blocks:
  Show dependency tree
 
Reported: 2008-07-18 09:22 UTC by buzzword
Modified: 2008-08-12 19:55 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The xsd and a sample project with it. (77.18 KB, application/x-compressed)
2008-07-18 09:22 UTC, buzzword
Details
Screeshots of the Issue on build #200807170007 (347.88 KB, application/x-compressed)
2008-07-22 23:00 UTC, buzzword
Details

Note You need to log in before you can comment on or make changes to this bug.
Description buzzword 2008-07-18 09:22:03 UTC
JDK 1.5u16 / Build #200707170007

If one adds two attributes to postconditionsType/database (the xsd is well-formed and valid), after the second the
Schema view tree corrupts and displays:
*database [0..1]
**complexType (extends entryListEntryType)
***entryListEntryType
***entryListEntryType
***two (instance of string)

However, the correct structure should be:
*database [0..1]
**complexType (extends entryListEntryType)
***entryListEntryType
***one (instance of string)
***two (instance of string)
Comment 1 buzzword 2008-07-18 09:22:53 UTC
Created attachment 64926 [details]
The xsd and a sample project with it.
Comment 2 Samaresh Panda 2008-07-22 21:32:23 UTC
Are you trying to add using the 'source' tab? Here is the new snippet and it works for me.
*****
<xsd:complexType>
    <xsd:complexContent>
        <xsd:extension base="tns:entryListEntryType">                            
        </xsd:extension>
    </xsd:complexContent>
    <xsd:attribute name="one" type="xsd:string"/>
    <xsd:attribute name="two" type="xsd:string"/>
</xsd:complexType>
*****

If this is how you have? It'll help if you could send an image of the view that is corrupted. Also please paste the snippet.
Comment 3 buzzword 2008-07-22 23:00:27 UTC
Created attachment 65285 [details]
Screeshots of the Issue on build #200807170007
Comment 4 buzzword 2008-07-22 23:01:06 UTC
This issue is bound to build #200807170007. On the latest one (#200807211016) the procedure is correct and successful.
Comment 5 tonybeckham 2008-07-22 23:09:08 UTC
So it is working with latest build?
Comment 6 buzzword 2008-07-22 23:19:56 UTC
Yes, on #200807221016 / JDK1.5u16 / WinXP AMD64 everything is fine.
Comment 7 Samaresh Panda 2008-07-22 23:20:18 UTC
Seems related to some recent changes in openide.nodes. See issue 140801. There are other bizarre node related issues
(see dependency) that popped up recently.
Comment 8 Jaroslav Tulach 2008-07-24 11:04:09 UTC
I've added a bunch of attributes to database node (in design view) and found no problems. My guess is that this issue 
is fixed in a957abe6cd06.
Comment 9 tonybeckham 2008-08-12 19:55:03 UTC
Verified as Resolved

Product Version: NetBeans IDE Dev (Build 200808120201)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Linux version 2.6.24-20-generic running on i386; UTF-8; en_US (nb)