<Sound Dev> RFR: 8250858 Address reliance on default constructors in the Java Sound APIs

Philip Race philip.race at oracle.com
Mon Aug 24 18:49:06 UTC 2020


   39 public abstract class MidiDeviceProvider {
   40
   41     /**
   42      * Constructs a {@code MidiDeviceProvider}.
   43      */
   44     protected MidiDeviceProvider() {}
   45


Why is this not using the same text we settled on elsewhere for 
constructors of abstract classes ?

"Constructor for subclasses to call"


-phil.

On 8/4/20, 5:28 PM, Sergey Bylokhov wrote:
> Hello.
> Please review the fix for jdk/client.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8250858
> CSR: https://bugs.openjdk.java.net/browse/JDK-8251024
> Fix: http://cr.openjdk.java.net/~serb/8250858/webrev.00
>
> This is part of a larger effort to remove reliance of default
> constructors in the JDK's exported API in preparation for introduction
> of a lint warning for this situation.
>
> This fix adds default public constructors to the public non-abstract
> classes and protected constructors to the public abstract classes.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/sound-dev/attachments/20200824/c73e6a59/attachment.htm>


More information about the sound-dev mailing list