Reland "Target Java 17"
This reverts commit 384250c7c4
.
Reason for revert: Relanding the feature.
Bug: 233029164
Change-Id: Ib66deabbf6e9604798c70edaf581f46db848e6ca
This commit is contained in:
committed by
Gerrit Code Review
parent
384250c7c4
commit
1fbf7f21a4
10
java/sdk.go
10
java/sdk.go
@@ -57,14 +57,10 @@ func defaultJavaLanguageVersion(ctx android.EarlyModuleContext, s android.SdkSpe
|
||||
return JAVA_VERSION_8
|
||||
} else if sdk.FinalOrFutureInt() <= 31 {
|
||||
return JAVA_VERSION_9
|
||||
} else if ctx.Config().TargetsJava17() {
|
||||
// Temporary experimental flag to be able to try and build with
|
||||
// java version 17 options. The flag, if used, just sets Java
|
||||
// 17 as the default version, leaving any components that
|
||||
// target an older version intact.
|
||||
return JAVA_VERSION_17
|
||||
} else {
|
||||
} else if sdk.FinalOrFutureInt() <= 32 {
|
||||
return JAVA_VERSION_11
|
||||
} else {
|
||||
return JAVA_VERSION_17
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user