“Oracle says it is ‘committed’ to Java EE 8”
Oracle is just weird, it feels like a lawyer driven company and I could imagine some big JavaEE user (maybe multiple ones) threatened to put law suites on Oracle but it could also be that the internal project failed and that’s why there back now. I actually don’t believe that either the JCP not the Guardians (and especially not … Reza) changed anything.
I need a damned last() on streams,
.reduce((a, b) -> b).orElse(null)
is crap
noctarius, I thought I read the JEP 260 carefully, can I get a java.lang.reflect.InaccessibleObjectException if I try to access sun.misc.Cleaner? Someone else got this exception when trying to access sun.nio.ch.DirectBuffer unlike me:
Please can you tell me how to use the class AutoClosing to run the cleaner without using the reflection API so that my source code will go on working even with Java 1.10? I’ll have to look at OpenJDK’s source code.
Edit.: sun.misc.Cleaner has been moved to jdk.internal.ref.Cleaner. The latter implements java.lang.Runnable unlike the former as I explained in my answer on StackOverflow.
In Java 9 you cannot use sun.misc.Cleaner anymore, the reasons are twofold:
- it is now jdk.interal.ref.Cleaner (or smt like that)
- it is guarded by Jigsaw
You can use -Xaddexports and export it or you can access the cleaner field as a Runnable (that’s at least what you can read here: http://mail.openjdk.java.net/pipermail/jigsaw-dev/2016-August/009032.html ). Apart from that, as long as Peter and the others are not exchanging it with the new public Cleaner API, it will be hard to do.
edit: oops should have read to the end, it was your question anyways
PS: There was a quite interesting discussion at JCrete with Cliff Click, Heinz Kabutz and Stuart Marks (and other, obviously), if someone is interested: http://nighthacking.com/selling-dreams-java-10-and-beyond/
They arrive after the battle, I have already fixed T.U.E.R and JMonkeyEngine in the meantime ;D
I hope that they won’t change a lot the API.