CoderResult.java (Cache.get): Fix a bug that was causing CoderResults to be cached...

2002-11-18  Jesse Rosenstock <jmr@ugcs.caltech.edu>

        * java/nio/charset/CoderResult.java (Cache.get): Fix a bug
        that was causing CoderResults to be cached, not WeakReferences
        to CoderResults.

From-SVN: r59233
This commit is contained in:
Jesse Rosenstock 2002-11-18 21:31:12 +00:00 committed by Michael Koch
parent 8128cccfcf
commit 8c9aa0cba9
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-11-18 Jesse Rosenstock <jmr@ugcs.caltech.edu>
* java/nio/charset/CoderResult.java (Cache.get): Fix a bug
that was causing CoderResults to be cached, not WeakReferences
to CoderResults.
2002-11-18 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
* java/security/KeyStore.java (getInstance): Fix

View File

@ -182,7 +182,7 @@ public class CoderResult
if (cr == null)
{
cr = make (length);
cache.put (len, cr);
cache.put (len, new WeakReference (cr));
}
return cr;