mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-20 17:39:42 +08:00
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:
parent
8128cccfcf
commit
8c9aa0cba9
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user