On 7 January 2016 at 07:34, Peter Levart <peter.lev...@gmail.com> wrote:
> ClassValue API could use a different strategy and reference the cached
> instance of type T from ClassValue<T> instance instead, but then you would
> have a problem with ClassValue instances reachable from other class loaders
> than the cached instances of type T.
>
> Regards, Peter

Is the problem with this strategy [together with a
java.util.WeakHashMap] that without this strong reference to the Class
object, the Class itself could be collected?

-- 
William Leslie

Notice:
Likely much of this email is, by the nature of copyright, covered
under copyright law.  You absolutely MAY reproduce any part of it in
accordance with the copyright law of the nation you are reading this
in.  Any attempt to DENY YOU THOSE RIGHTS would be illegal without
prior contractual agreement.
_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Reply via email to