[concurrency-interest] Unsafe publication of generic reflection information?

Ernst, Matthias matthias.ernst at coremedia.com
Fri Oct 20 10:25:09 EDT 2006


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?


More information about the Concurrency-interest mailing list