RFR[8250855]: 'Address reliance on default constructors in the Java 2D APIs'

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Sat Aug 22 03:24:55 UTC 2020


Hi, Conor.

The latest agreement in the client team for such bugs is to use protected constructors for the abstract classes.
Something like this:
https://cr.openjdk.java.net/~psadhukhan/8250850/webrev.1/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalTheme.java.sdiff.html

PS you need to file a CSR for this change.

On 17.08.2020 03:11, Conor Cleary wrote:
> Hi all,
> 
> Looking for reviewers for JDK-8250855, 'Address reliance on default constructors in the Java 2D APIs'.
> 
> This patch addresses the reliance on default constructors in the following packages:
> 
>   * java.awt.Image
>   * java.awt.PrintJob
>   * java.awt.font.GlyphVector
>   * java.awt.font.LayoutPath
>   * java.awt.font.LineMetrics
>   * java.awt.image.AbstractMultiResolutionImage
>   * java.awt.image.BufferStrategy
>   * java.awt.image.ImageFilter
>   * java.awt.image.RGBImageFilter
>   * java.awt.image.VolatileImage
>   * javax.print.PrintServiceLookup
>   * javax.print.ServiceUI
>   * javax.print.ServiceUIFactory
>   * javax.print.StreamPrintServiceFactory
>   * javax.print.event.PrintJobAdapter
> 
> The patch places simple constructors in all of these packages.
> 
>   * bug: https://bugs.openjdk.java.net/browse/JDK-8250855
>   * webrev: http://cr.openjdk.java.net/~ccleary/issues/webrevs-store/8250855/webrevs/webrev.00/
> 
> 
> Conor
> 


-- 
Best regards, Sergey.


More information about the jdk-dev mailing list