Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#1868 closed defect (wontfix)

Set javac.version=1.6 in Android build

Reported by: zzz Owned by: str4d
Priority: minor Milestone: 0.9.28
Component: apps/android Version: 0.9.27
Keywords: Cc:
Parent Tickets: Sensitive: no


In i2p.i2p 85146390a4375076c261bbc8b58883012d3e9413 to be 0.9.27-5 I've changed the default javac.version from 1.6 to 1.7. All jars used by Android are still compatible with 1.6 (unknown when we will want to abandon old Android versions and allow 1.7 code). But starting with Android 0.9.28 you'll have to set javac.version=1.6 in the Android build somewhere. You should probably also set the bootclasspath compilerarg, don't think that's done now. If you don't, some future 1.7-ism won't be caught in the build.

Entering this ticket so we don't forget.


Change History (2)

comment:1 Changed 4 years ago by str4d

Resolution: wontfix
Status: newclosed

The Android build has supported Java 1.7 language features for nearly two years:

android {
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7

What it doesn't support right now is new 1.7 libraries (as those couldn't be retroactively added to older APIs). But I believe that would be resolved by changing minSdkVersion from 9 to either 19 or 21 (which is itself a significant jump, and needs further research).

See here for details of Android's ongoing Java 8 support.

comment:2 Changed 4 years ago by zzz

Yeah, as I expected. This ticket was just a reminder as the changes I made were to be quite a while before the Android release. Thanks.

Note: See TracTickets for help on using tickets.