bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22747] Security.removeProvider and Security.getProvider r


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22747] Security.removeProvider and Security.getProvider requires interned names
Date: 16 Oct 2005 01:26:58 -0000

The removeProvider and getProvider methods of java.security.Security only work
when the parameter (a string, which is the name of that provider) is a string
constant or an interned string, because it uses `==' instead of String.equals
when comparing provider names.

This is contrary to the behavior in Sun's 1.4.2 JRE and IBM's 1.4.1 JRE, and
makes dynamic usage of these methods inconvenient.


------- Comment #1 from from-classpath at savannah dot gnu dot org  2004-05-28 
10:34 -------
Fixed in latest CVS with the following changelog entry. It will be included in
the 0.10 release.

2004-05-28  Michael Koch  <address@hidden>

        * java/security/Security.java
        (insertProviderAt): Use equals() instead of ==.
        (removeProvicer): Likewise.
        (getProvider): Likewise.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22747





reply via email to

[Prev in Thread] Current Thread [Next in Thread]