Unsafe publication of generic reflection information?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Unsafe publication of generic reflection information?

Ernst, Matthias
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

_______________________________________________
Concurrency-interest mailing list
[hidden email]
http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest