<Beans Dev> Resolving type of overridden properties

Urfer Reto reto.urfer at profidatagroup.com
Tue Nov 5 01:35:07 PST 2013


I had similar problems and have already filed the bugs
- Bug Id: 9006487
- Bug Id: 9007101

But under http://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.


-----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.


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