From 8649b2653cdcb147c67a0c523967ca76689875bb Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 27 Sep 2017 18:03:17 -0700 Subject: Use pre-desugar classes in classpath Follow the make change in I87aee34940937dbde33a977f55d1faf2c8054561 to use classes before desugar in the classpath. Test: java_test.go Change-Id: I1054f4aea1eb349b6f687e1af0adb92a944fd8c5 --- java/java.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'java/java.go') diff --git a/java/java.go b/java/java.go index f9193c557..06ba44db8 100644 --- a/java/java.go +++ b/java/java.go @@ -449,12 +449,12 @@ func (j *Module) compile(ctx android.ModuleContext) { manifest := android.OptionalPathForModuleSrc(ctx, j.properties.Manifest) // Combine the classes built from sources, any manifests, and any static libraries into - // classes-combined.jar. If there is only one input jar this step will be skipped. + // classes.jar. If there is only one input jar this step will be skipped. outputFile := TransformJarsToJar(ctx, "classes.jar", jars, manifest, false) if j.properties.Jarjar_rules != nil { jarjar_rules := android.PathForModuleSrc(ctx, *j.properties.Jarjar_rules) - // Transform classes-combined.jar into classes-jarjar.jar + // Transform classes.jar into classes-jarjar.jar outputFile = TransformJarJar(ctx, outputFile, jarjar_rules) if ctx.Failed() { return @@ -517,10 +517,6 @@ func (j *Module) compile(ctx android.ModuleContext) { return } - // TODO(ccross): For now, use the desugared jar as the classpath file. Eventually this - // might cause problems because desugar wants non-desugared jars in its class path. - j.classpathFile = desugarJar - // Compile classes.jar into classes.dex dexJarFile := TransformClassesJarToDexJar(ctx, desugarJar, flags) if ctx.Failed() { -- cgit v1.2.3-59-g8ed1b