United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5109847 J2SE 142_06: Regression in java.beans.Introspector (property re-ordering)
JDK-5109847 : J2SE 142_06: Regression in java.beans.Introspector (property re-ordering)

Details
Type:
Bug
Submit Date:
2004-10-01
Status:
Resolved
Updated Date:
2004-11-18
Project Name:
JDK
Resolved Date:
2004-11-18
Component:
client-libs
OS:
solaris_9
Sub-Component:
java.beans
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.4.2_06
Fixed Versions:
1.4.2_07 (b02)

Related Reports
Relates:
Relates:

Sub Tasks

Description
The regression is in java.beans.Introspector, when it gets the beanInfo for a class, the order of properties in the beanInfo is changed from 142_05 to 142_06.  The order in 142_05 is alphabetical.  I attached a test case to identify this.

What you need to do is to compile both Test.java and SOAPStruct.java and run java test.Test.

142_05:

65$ java test.Test

0: varFloat

1: varInt

2: varString



142_06:

64$ java test.Test

0: varInt

1: varString

2: varFloat 

                                    

Comments
EVALUATION

I must first mention that the Introspector spec does not guarentee that properties will be returned in any particular order.  However this is not the first instance of someone relying on the order anyway.

The change in behavior happened after the fix for 4918902, which was backported to 1.4.2_06.  This fix also caused problems for Tiger, prompting bug 5063390.  The easiest resolution to this bug would be to backport the 5063390 fix to a 1.4.2 update release.  Another option would be to move to Tiger.
###@###.### 2004-10-01
                                     
2004-10-01



Hardware and Software, Engineered to Work Together