News for hackers. Stuff that matters.
Re:Retropiler: Java 8 Standard Library Backport for Android by vesinisa on Sunday May 07, 2017 @02:39PM (#14286824)
Quoting u/JakeWharton on Reddit to here:

> The runtime includes GPL classes which will force your application to GPL. Despite the Apache 2 license the project reports, do not use this unless you understand what adding GPL code to your application means. You are not subject to the classpath exemption when the code is bundled in your app.

https://www.reddit.com/r/androiddev/comments/69rvf4/retropil...

Re:Retropiler: Java 8 Standard Library Backport for Android by pulse7 on Sunday May 07, 2017 @05:35PM (#14287820)
If I package my Java app together with OpenJDK JRE then GPL code is bundled in my app and I can use "classpath exemption".

If I take OpenJDK JRE, fork it, make Retropiler out of it and publish it under "GPL plus classpath exception" and then package my Java app together with Retropiler then GPL code is bundled in my app - it is the same as above. Why I am not subject to the classpath exception in this case?

Re:Retropiler: Java 8 Standard Library Backport for Android by pulse7 on Sunday May 07, 2017 @07:47PM (#14288334)
I checked again:

1) OpenJDK allows you to fork under a) GPLv2 or b) GPLv2 + Classpath Exception (see http://openjdk.java.net/legal/gplv2+ce.html, "If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version." where library=OpenJDK and exception=Classpath Exception).

2) Android's OpenJDK fork is licensed under GPLv2 + Classpath Exception (see https://android.googlesource.com/platform/libcore/+/master/L...)

3) Retropiler OpenJDK runtime is licensed under GPL only (see https://github.com/retropiler/retropiler, "The Java classes in runtime/ module which were copied from AOSP are licensed as GPL.")

They could fork OpenJDK and license it with classpath exception which would allow you to (statically or dynamically) bundle your app with OpenJDK under any license. But since they didn't include the classpath exception your app bundling parts of the Retropiler's OpenJDK fork must be under GPL! So you can use it only for open source projects...

Re:Retropiler: Java 8 Standard Library Backport for Android by glibgil on Sunday May 07, 2017 @03:27PM (#14287101)
How is this not covered by the classpath exception?
Re:Retropiler: Java 8 Standard Library Backport for Android by taeric on Sunday May 07, 2017 @06:31PM (#14288088)
At a guess, because you distributed the code. It is one thing for it to be in the platform and you are using it by virtue of another's actions. If it only works when you personally bundle and distribute the code...

Just a guess, though. IANAL and all of that.

Re:Retropiler: Java 8 Standard Library Backport for Android by serialx on Sunday May 07, 2017 @10:19PM (#14288830)
This is fixed now. The README now state GPL + Classpath Excemption
Re:Retropiler: Java 8 Standard Library Backport for Android by gfx on Sunday May 07, 2017 @10:43PM (#14288898)
I think JakeWharton's point is right.

Issued: https://github.com/retropiler/retropiler/issues/6