Skip to content
Advertisement

Tag: introspection

Is JRE 1.8 still JavaBean specs compliant about IndexedPropertyDescriptor?

This question seems awkward but we are facing a strange behaviour while retrieving the PropertyDescriptors of a javabean. Here are the execution results on 1.6, 1.7 and 1.8 of a simple piece of code, compiled with 1.6 compliance. Java 1.6 execution: java.beans.PropertyDescriptor@4ddc1428 <- Not important java.beans.IndexedPropertyDescriptor@7174807e <- Yes I have an indexed property Java 1.7 execution: java.beans.PropertyDescriptor[name=class; propertyType=class java.lang.Class; readMethod=public

Advertisement