News for hackers. Stuff that matters.
Re:Android Q Beta by kllrnohj on Wednesday March 13, 2019 @05:40PM (#19384159)
The only thing that matters for library interop is the bytecode version, not the "Java" version. Binary version & source version have been different attributes in Java going all the way back to the J2ME days.

> Rest assured when Valhalla and Panama finally land, it will only get worse.

You're assuming that Android won't have support for those, but that assumption is unfounded. Android has so far gotten support for all the bytecode-level changes that have happened like invoke-dynamic.

Java 9, 10, and 11 have not changed the bytecode. Nothing about the compiled binary has changed to require support. And outside of Flow none of the core libraries have changed, either.

There's no forking or hijacking in play here. Oracle just hasn't done anything that needs support from a runtime since Java 8.

Re:Android Q Beta by half-kh-hacker on Wednesday March 13, 2019 @06:31PM (#19384611)
> Java 9, 10, and 11 have not changed the bytecode

Off the top of my head, JEP 309, implemented in Java 11, introduces a new instruction called `constantdynamic`

Re:Android Q Beta by jaytaylor on Wednesday March 13, 2019 @11:30PM (#19386311)
JEP309 "constantdynamic" for the uninitiated: https://openjdk.java.net/jeps/309
Re:Android Q Beta by kllrnohj on Wednesday March 13, 2019 @06:46PM (#19384734)
Ah my mistake then. Is there any way to actually use that instruction from Java though? Or is this just bytecode support for a potential future feature?
Re:Android Q Beta by pjmlp on Thursday March 14, 2019 @03:49AM (#19387240)
It gets used by the compiler, so unless ART gets to understand it, those nice Java 11 libraries at Maven central that might make use of it are a no go on Android.

And yes, it is also related to the ongoing Valhala efforts.

https://openjdk.java.net/jeps/303

Re:Android Q Beta by pjmlp on Wednesday March 13, 2019 @05:58PM (#19384311)
So where is Android support for constant pools or nested class changes?

Of the complete Java standard library for that matter.

Of course I am assuming the worse from a company that insists in getting away with Android J++, while having fanboys supporting their agenda, many of which were even on the first row against the old J++.

But I get it, the "Do no evil" company has lots of SV love.

Re:Android Q Beta by kllrnohj on Wednesday March 13, 2019 @06:22PM (#19384527)
> support for constant pools

Are you thinking of Java 11's Dynamic Class-File Constants or Java 12's JVM Constants API?

> nested class changes

What nested class changes?

> Of the complete Java standard library for that matter.

What is missing other than the few new additions (like Flow) in recent versions?

Or are you mistakenly considering javax.* part of the Java standard library? Because it's not, which Java 9 reinforced as part of Project Jigsaw.

Re:Android Q Beta by pjmlp on Thursday March 14, 2019 @03:44AM (#19387218)
> What nested class changes?

https://openjdk.java.net/jeps/181~

> What is missing other than the few new additions (like Flow) in recent versions?

A big chunck of what is listed here.

https://docs.oracle.com/en/java/javase/11/docs/api/index.htm...

https://docs.oracle.com/en/java/javase/11/docs/specs/jni/ind... (Android supports up to Java 6 JNI)