-
Bug
-
Resolution: Cannot Reproduce
-
P2
-
6u18
-
generic
-
generic
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.
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.