<Beans Dev> [9] Review Request: 8155103 @BeanProperty: unwanted "declaringClass" descriptor when annotating an enum

Semyon Sadetsky semyon.sadetsky at oracle.com
Mon May 23 05:44:40 UTC 2016


Hi,

Looks good.
Since this is an test issue, please add [TEST_BUG] to JIRA.

--Semyon

On 5/22/2016 12:33 AM, Sergey Bylokhov wrote:
> Hello.
> Please review the fix for jdk9.
>
> The test BeanPropertyTest assumes that the enum is directly subclass 
> the Object, but actually the enums are subclass of Enum. Since the 
> ENum class has getDeclaringClass() method the Introspector reports 
> declaringClass property.
>
> As a fix I change the stopClass from Object.class to Enum.class + 
> small cleanup(the static keyword is not necessary for enums).
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8155103
> Webrev can be found at: 
> http://cr.openjdk.java.net/~serb/8155103/webrev.00
>



More information about the beans-dev mailing list