On Mar 28, 2012, at 5:42 PM, Vitaly Davidovich wrote:
> I think you can use diamond generic inference when declaring the weak intern
> set
>
Done; thanks.
> Also any reason you didn't use WeakHashMap directly with dummy value to
> simulate the set? Or wrap the WeakHashMap and synchronize the accessors to it
>
That's been answered already on this thread.
Building collection-like types from reusable components in Java is not a
fully-solved problem, and the symptom is lots of code copying. Last time I
checked, there wasn't even a reusable Map.Entry abstract class.
— John
_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev