Re: Question in understanding ClassValue better

2016-05-24 Thread Jochen Theodorou
On 24.05.2016 15:33, Peter Levart wrote: On 05/24/2016 01:41 PM, Peter Levart wrote: Hm, It seems that my example will not help much. It also seems that the only problem with plain: static final ClassValue META_CLASS_CV = new ClassValue() { @Override protected MetaClass co

Re: Question in understanding ClassValue better

2016-05-24 Thread Peter Levart
On 05/24/2016 01:41 PM, Peter Levart wrote: Hm, It seems that my example will not help much. It also seems that the only problem with plain: static final ClassValue META_CLASS_CV = new ClassValue() { @Override protected MetaClass computeValue(Class type) {

Re: Question in understanding ClassValue better

2016-05-24 Thread Peter Levart
On 05/24/2016 10:26 AM, Jochen Theodorou wrote: Peter, I fully understand if you cannot reply to this mail easily, just wanted to ping to ensure this is not forgotten ;) Sorry Jochen, I forgot about it... Thanks for reminding me! On 20.05.2016 01:33, Jochen Theodorou wrote: On 19.05.2016 2

Re: Question in understanding ClassValue better

2016-05-24 Thread Jochen Theodorou
Peter, I fully understand if you cannot reply to this mail easily, just wanted to ping to ensure this is not forgotten ;) On 20.05.2016 01:33, Jochen Theodorou wrote: On 19.05.2016 21:32, Peter Levart wrote: [...] a ClassValue instance can be thought of as a component of a compound key. Togeth

Re: Question in understanding ClassValue better

2016-05-19 Thread Jochen Theodorou
On 19.05.2016 21:32, Peter Levart wrote: [...] a ClassValue instance can be thought of as a component of a compound key. Together with a Class, they form a tuple (aClass, aClassValue) that can be associated with an "associated value", AV. And yes, the AVs associated with tuple containing a partic

Re: Question in understanding ClassValue better

2016-05-19 Thread Peter Levart
A small correction... On 05/19/2016 09:32 PM, Peter Levart wrote: // the public API public MetaClass getInstanceFor(Class type) { This should of course read: // the public API public *static* MetaClass getInstanceFor(Class type) { Regards, Peter __

Re: Question in understanding ClassValue better

2016-05-19 Thread Peter Levart
Hi Jochen, I'll try to answer your questions as profoundly as I can... On 05/19/2016 04:27 PM, Jochen Theodorou wrote: Hi, at the beginning of this year I had an exchange with Peter Lavart about JDK-8136353 (see http://mail.openjdk.java.net/pipermail/mlvm-dev/2016-January/006563.html), and

Question in understanding ClassValue better

2016-05-19 Thread Jochen Theodorou
Hi, at the beginning of this year I had an exchange with Peter Lavart about JDK-8136353 (see http://mail.openjdk.java.net/pipermail/mlvm-dev/2016-January/006563.html), and that is probably based on wrong assumptions. But I must confess I still have trouble understanding ClassValue semantics.