Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4371181

The getSpecified method of Attr does not work in one case

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.1, 1.4.1
    • Fix Version/s: 1.1
    • Component/s: xml
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.1fcs
    • CPU:
      sparc
    • OS:
      solaris_7, solaris_8
    • Verification:
      Verified

      Description

      The getSpecified method of Attr is supposed to return false in the following case :
      If the attribute has no assigned value in the document and has a default value in the DTD, then specified is false, and the value is the default value in the DTD.
       
      I have attached an xml file with the DTD and also a sample program which shows that it returns the default value of the DTD for the attribute but does not return the specified as false.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                egoei Edwin Goei (Inactive)
                Reporter:
                bhamehta Bhakti Mehta (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: