JEP proposed to target JDK 17: 406: Pattern Matching for switch (Preview)
mike.rettig at gmail.com
Wed Jun 2 00:54:38 UTC 2021
On Tue, Jun 1, 2021 at 3:56 PM <forax at univ-mlv.fr> wrote:
> setAccessible can be deprecated, so it's not forever, the hope is that the
> use of setAccessible will decay, and java.lang.invoke.Lookup will be used
I'd certainly prefer a compile time failure to a runtime incompatibility. A
compile time problem can be fixed immediately while a runtime error might
be impossible to fix due to lack of ownership of the offending code.
Deprecation of setAccessible would be okay with me, but actual removal is
an impossibility given its widespread use. It is forever.
More information about the jdk-dev