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

hasAssociation with empty file extension string {""} throws StringIndexOutOfBoundsException java

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      generic

      Description

      hasAssociation with empty file extension string {""} throws StringIndexOutOfBoundsException java
      null file extension throws NullPointerException.
      This is same as requestAssociation needs to change to either illegalArgumentException.

      Suppose we have assocition like this
          <association>
            <mime-type="application-x/swingset2-file"/>
          </association>
      If want to check hasAssocition("application-x/swingset2-file",null or {""}) ?
      Is <extensions> are mandatory ?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rkennke Roman Kennke
              Reporter:
              rnairsunw Raghu Nair (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: