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

For an argument which doesn't contain local part, QName#valueOf doesn't detect error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 7
    • Fix Version/s: tbd
    • Component/s: xml
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description

      QName#valueOf should throw IllegalArgumentException in following test case.

      ----
      import javax.xml.namespace.*;

      class Test {
              static public void main(String args[]){
                      try{
                              QName.valueOf("{http://java.sun.com}");
                      }catch(IllegalArgumentException e){
                              e.printStackTrace();
                      }
              }
      }
      ----

      But the exception is not thrown in JDK 1.5 , 6 niether 7.

        Attachments

          Activity

            People

            Assignee:
            joehw Joe Wang
            Reporter:
            tyamagat Tatsuki Yamagata (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Imported:
              Indexed: