mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02: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:
committed by
Michael Koch
parent
8128cccfcf
commit
8c9aa0cba9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user