<Beans Dev> Resolving type of overridden properties

sergey malenkov sergey.malenkov at oracle.com
Fri Nov 8 03:36:51 PST 2013

9006487 looks like a duplicate of 9007101, which is duplicate of the 
following issue:

It is fixed in JDK 8 by the following fix:

If you need to backport the fix into JDK 7,
you have to take these recommendations:


On 05.11.2013 13:35, Urfer Reto wrote:
> Hi
> I had similar problems and have already filed the bugs
> - Bug Id: 9006487
> - Bug Id: 9007101
> But underhttp://bugs.sun.com  they are not visible for me if I search for them with their ids.
> I investigated a little bit the problems.
> 1) when the properties are created a given order in the methods returned by Class.getMethods() is required. But the documentation of this method says that the returned method array is not ordered in any way.
> 2) whenever the garbage collector has removed the method references in the property descriptor and they have been redetermined, the algorithm is different to the one which creates the properties. When the properties are created, the last getter method following the naming conventions of a property is the one which is chosen from the returned methods of Class.getMethods(). In  case only the property method have to be reassigned to the property descriptor, the first getter is chosen. This behavior you can reproduce with the attached class.
> Regards
> Reto
> -----Ursprüngliche Nachricht-----
> Von:beans-dev-bounces at openjdk.java.net  [mailto:beans-dev-bounces at openjdk.java.net] Im Auftrag von sergey malenkov
> Gesendet: Freitag, 1. November 2013 08:26
> An: Makhmutov Alexey
> Cc:beans-dev at openjdk.java.net
> Betreff: Re: <Beans Dev> Resolving type of overridden properties
> Hi Alexey,
> I'll try to fix it in 8 and to port it into 7u then.
> https://bugs.openjdk.java.net/browse/JDK-8027648
> Regards,
> On 31.10.2013 15:21, Makhmutov Alexey wrote:
>> Hi Sergey,
>>> Could you please file a bug?
>>> I'll try to fix it.
>> Ok, thank you! Here is the bug number: 9007922.
>> Thanks,
>> Alexey

More information about the beans-dev mailing list