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 17928

Summary: Method TreeElement.setAttribute() should check if the atrribute name not exist.
Product: xml Reporter: Martin Schovanek <mschovanek>
Component: TAXAssignee: _ lkramolis <lkramolis>
Status: CLOSED DUPLICATE    
Severity: blocker    
Priority: P1    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Martin Schovanek 2001-11-21 15:52:02 UTC
[jdk1.3.1, Nb Build 200111191655, Linux]

    public static void main(String args[]) throws Exception {
        TreeElement element = new TreeElement("element");
        
        //I can set attribute with existing name.
        element.setAttribute("a", "a");
        element.setAttribute("a", "c");
        element.setAttribute(element.getAttribute("a"));
    }

I think an exception should be thrown.
Comment 1 _ lkramolis 2001-11-21 16:12:17 UTC

*** This issue has been marked as a duplicate of 17699 ***
Comment 2 Quality Engineering 2003-07-02 08:36:06 UTC
Resolved for 3.4.x or earlier, no new info since then -> verify.

Comment 3 Quality Engineering 2003-07-02 08:41:05 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.