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 70684 - Broken XML model if certain error is corrected
Summary: Broken XML model if certain error is corrected
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Document Model (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on: 126968
Blocks:
  Show dependency tree
 
Reported: 2005-12-21 11:50 UTC by Jiri Kovalsky
Modified: 2009-12-21 05:07 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 Jiri Kovalsky 2005-12-21 11:50:02 UTC
Development build #200512202030 of NetBeans 5.0
Windows XP, JDK 1.5.0_05 EA build #02

Description:
============
There is a scenario that always leads to broken XML model resulting in incorrect
folding and contents of navigator. The important fact is that all elements must
have the same name.

Steps to reproduce:
===================
1. Create new sample web application project and new XML document underneath.
2. Replace its content with XML code below.
3. Expand whole tree in XML navigator to see two a nodes.
4. Set your cursor at position 3:8 i.e. <a |./>
5. Press Delete key and expand the whole tree again.
6. It will show only two <a> elements. Besides, note that one fold is created
from line 2 to 5 instead of two folds 1-5 and 2-4.

XML code reproducing the problem:
=================================
<a>
  <a>
    <a ./>
  </a>
</a>
Comment 1 Marek Fukala 2006-07-21 16:02:15 UTC
still valid issue, needs to be adressed by the document model implementation
redesign (6.0).
Comment 2 Marek Fukala 2007-02-16 14:41:29 UTC
Reassigning to default owner of selected subcomponent. New owners are gladly
welcomed.
Comment 3 Samaresh Panda 2008-02-08 06:39:17 UTC
The fold part has been fixed as a result of the fix in issue 125055. Now, for the navigator, there is a plan to rewrite
navigator, see issue 126968 and when that gets fixed, this should get fixed.
Comment 4 Samaresh Panda 2008-09-05 21:54:07 UTC
Corner case, hence making it a P4. Not sure when issue 126968 will get fixed.
Comment 5 Quality Engineering 2009-12-21 05:07:55 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team