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 115926 - Schema-based CC mishandles namespaces
Summary: Schema-based CC mishandles namespaces
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-18 22:36 UTC by Jesse Glick
Modified: 2008-05-27 19:00 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 Jesse Glick 2007-09-18 22:36:25 UTC
070918, JDK 6. To reproduce:

1. Open ant/freeform/nbproject/project.xml (for example).

2. Put caret on a new line between the start of <data> and <code-name-base>.

3. Press '<' and wait for CC to pop up.

4. Various elements are offered. (This is incorrect - only certain elements are permitted at point - but that is a
different bug that I do not care to file today.) Accept any of them, e.g. 'class-path-extension'.

Expected:

'<ns2:class-path-extension' is inserted.

Actual result:

' xmlns:ns2="null"' is added to the root <project>, and '<ns2:class-path-extension' is inserted.
Comment 1 Samaresh Panda 2008-05-27 17:56:24 UTC
I might have fixed it in 6.1. Please verify.
Comment 2 Jesse Glick 2008-05-27 18:13:31 UTC
The bad namespace handling seems fixed, at least for this simple example. I will file a separate bug for the
cluelessness about order.
Comment 3 Jesse Glick 2008-05-27 18:14:43 UTC
Actually the order problem was already filed as issue #109178.
Comment 4 Samaresh Panda 2008-05-27 19:00:36 UTC
Yeah, you did file it during 6.0. The problem with ordering is, it'll slow down things a bit. I'll look into it.