JDK 10 RFR JDK-8177153: LambdaMetafactory has default constructor
Martin Buchholz
martinrb at google.com
Fri Apr 28 21:22:42 UTC 2017
http://errorprone.info/bugpattern/PrivateConstructorForUtilityClass
On Fri, Apr 28, 2017 at 2:19 PM, Paul Sandoz <paul.sandoz at oracle.com> wrote:
>
> > On 28 Apr 2017, at 14:10, joe darcy <joe.darcy at oracle.com> wrote:
> >
> > Hello,
> >
> > As this is a binary incompatible change, effectively removing a public
> constructor, I'd prefer if this change got into JDK 9 instead, pending the
> review process of course.
> >
>
> Fair point, the earlier the better in that regard.
>
>
> > (I've thought it would be worthwhile to audit the JDK for default
> constructors and/or add a javac lint warning for that situation, but I
> haven't done that, yet.)
> >
>
> If we used something like error prone (perhaps with integration into
> javac) i presume this would be rather easy to do.
>
> Paul.
>
>
More information about the core-libs-dev
mailing list