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

HasAssociation return false when there are two or more association and mime type.

    XMLWordPrintable

Details

    • generic
    • generic

    Description

      HasAssociation return false when there are two or more association and mime type.

      Steps to reproduce:
      create a JNLP with following entry.
           <association extensions="abc" mime-type="x-application/abc"/>
           <association extensions="xyz" mime-type="x-application/xyz"/>

      Invoke hasAssociation -
              String mime = "x-application/abc";
              String []exts = {"abc"};
              String mime1 = "x-application/xyz";
              String []exts1 = {"xyz"};

              boolean result = is.hasAssociation(mime,exts);
              boolean result1 = is.hasAssociation(mime1,exts1);

      Expected result and resutl1 to be true.

      Attachments

        Activity

          People

            herrick Andy Herrick (Inactive)
            rnairsunw Raghu Nair
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: