JDK-8208638 : Instead of circle rendered in appl window, but ellipse is produced JEditor Pane
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u152,9.0.1,11,12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-08-01
  • Updated: 2019-04-11
  • Resolved: 2018-09-27
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.
JDK 11 JDK 12 JDK 8
11.0.2Fixed 12 b17Fixed 8u192Fixed
Related Reports
Relates :  
Relates :  
Comments
Fix Request: This is a customer bug, which was reported for jdk8u, which has been fixed in 12. The fix addresses the image scaling as per the earlier comment, and it has been verified in 12 and in jdk8u locally. Fortunately, for 11u, the same webrev as for 12 can be applied without any changes : http://cr.openjdk.java.net/~kaddepalli/8208638/webrev02/ The code has been reviewed by Prasanta.sadukhan@oracle.com and Sergey.Bylokhov@oracle.com
04-10-2018

The way image scaling is handled is as follows: 1. If both width and height are specified in html, then use them instead. 2. If both are not specified, then use the image dimensions. 3. If either one is specified, then proportionately adjust the other dimension to preserve the aspect ratio of the image.
04-09-2018

The problem is present because of the fact of wrong assumption in the fix. There was no clear indication of how unspecified attribute (height/width) should be handled. Atleast, it was not easily visible on the net to me. The image used in the original fix, which was a circle inscribed in a square, didnot bring out the assumption correctly. The image provided by the customer which is 100x200, with a 50x50 circle rendered in the middle brings out this problem.
17-08-2018

[~serb] please evaluate, does it affect 12?
02-08-2018