JDK-5073869 : Synth does not resolve styles with name and region matches correctly
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2004-07-14
  • Updated: 2004-10-25
  • Resolved: 2004-09-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u1 betaFixed 6Fixed
Description
The attached test case illustrates this.
The test case creates two styles, a backing style and a style bound based on the name of a component.  The style for the component name is defined later in the file, yet the component ends up getting the font of the first style.  The second println should have a font size of 12, not 24.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.5.0_01 mustang FIXED IN: 1.5.0_01 mustang INTEGRATED IN: 1.5.0_01 mustang
28-09-2004

EVALUATION The current resolving logic is such that region styles are given higher precedence, regardless of where the binding occurs in the file. The fix is to make the resolving logic match that of position of binding in file. ###@###.### 2004-07-14
14-07-2004