logo       

Unsafe publication of generic reflection information?: msg#00041

java.jsr.166-concurrency

Subject: Unsafe publication of generic reflection information?

Hi,

java.lang.Class#genericInfo is unsafely published. Although its property
getter checks for null and all the getters in ClassRepository do, too,
there is no such check for the members of
ClassRepository#superInterfaces array.

Could it be that a thread calling aClass.getGenericInterfaces() would
see an array with "holes" in it?

Thanks
Matthias


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise