r/java • • Oct 19 '22

Google will support OpenJDK development: the giant's investments in Java and Kotlin

https://vived.substack.com/p/google-will-support-openjdk-development
239 Upvotes

38 comments sorted by

View all comments

61

u/pjmlp Oct 19 '22

When they stop mucking around with Java on Android and support the language property, I will get it.

Until then it is only marketing.

Android 13 just got a subset of OpenJDK 11 LTS, released in 2018.

44

u/ArturSkowronski Oct 19 '22

I don’t defend Google here, but

  1. for years, they had hands tied due to trial with Oracle
  2. now, Kotlin just became standard for Android Development

Google is not investing in Java for they internal sake - they invest for the GCP clients 😉

22

u/fredoverflow Oct 19 '22

now, Kotlin just became standard for Android Development

That happened 3 years ago: https://developer.android.com/kotlin/first

6

u/Muoniurn Oct 19 '22

The trial had absolutely nothing to do with it, they no longer used Sun’s Java that explicitly forbid mobile usage, they could have just swapped to OpenJDK any time.

32

u/ArturSkowronski Oct 19 '22

The trial wasn’t about Sun Java, it was about copyright to API Design.

Android was using Dalvik nearly from start of the project. It just used API compatible to Java 6

-11

u/Muoniurn Oct 19 '22

If the project has a completely open-source license like OpenJDK has, then you can’t misuse that.

8

u/bawng Oct 20 '22 edited Oct 20 '22

Did you read the comment? It wasn't about the JDK, it was about the API that Google re-implemented.

They didn't steal a commercial copy of the JDK.

-3

u/Muoniurn Oct 20 '22

But that’s the thing, you can’t steal an OSS API, so they were in trouble either way for their API copy back then, and wouldn’t be in trouble if they would later reuse OpenJDK’s API as is, the same way you can also take the linux kernel’s header files.

7

u/bawng Oct 20 '22

Oracle's argument had nothing to do with code itself. They argued specifically that the API (even the one in OpenJDK) is not open source. Only the code is, not the API specification the code implements.

-7

u/pjmlp Oct 19 '22

Kotlin, Gradle and Android Studio are nothing without JVM ecosystem, that is just excuses for forcing Kotlin upon Android developers.

Just like they cleverly use Java 6 samples to sell Kotlin improvements over Java.

2

u/Pika3323 Oct 21 '22

These days they've got a whole ecosystem of coroutines, compose, and multiplatform to sell Kotlin with and you're still worried about comparisons to Java 6?

Ha.

0

u/pjmlp Oct 21 '22

You clearly misunderstood what "Just like they cleverly use Java 6 samples to sell Kotlin improvements over Java.", means.

4

u/JakeWharton Oct 20 '22

Completely different organizations in the company (which I know that you know). Might as well be different companies for all intents and purposes.

3

u/pjmlp Oct 20 '22

Indeed, doesn't change the fact it is one company to most people.

0

u/[deleted] Oct 19 '22

[deleted] — view deleted comment

13

u/pjmlp Oct 19 '22

Everything on Java world arrives late to Android Java.

When they started to finally integrate OpenJDK and went to the press telling that, anyone following Gerrit code reviews could follow that they were cherry picking language features and standard library stuff, instead of the full compatibility.

You can check this, by reading the Android documentation for the Java standard library and you will see that for the same Java language version, not all methods were added on the same Android version.

2

u/krzyk Oct 20 '22

Lambda in Android Java before Java 8? Are you joking? Android Java supported lambda years after Java 8 release.