diff options
author | 2016-03-29 19:02:53 +0000 | |
---|---|---|
committer | 2016-03-30 08:14:55 +0000 | |
commit | cadba0c2e44fe7895083b8b72ff6ce4a351772b5 (patch) | |
tree | ff1b1657ecb1a82efaf1ffea1281ad67c15542ea /src/java_tools/buildjar/javatests/com/google/devtools/build/java | |
parent | c42b09bd953c33452690191969125644deb6ea60 (diff) |
Fix file object URIs in ZipOutputFileManager
Avoids spurious diagnostics about annotation processor generated class names not matching the file path.
--
MOS_MIGRATED_REVID=118488628
Diffstat (limited to 'src/java_tools/buildjar/javatests/com/google/devtools/build/java')
-rw-r--r-- | src/java_tools/buildjar/javatests/com/google/devtools/build/java/turbine/javac/JavacTurbineTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/java_tools/buildjar/javatests/com/google/devtools/build/java/turbine/javac/JavacTurbineTest.java b/src/java_tools/buildjar/javatests/com/google/devtools/build/java/turbine/javac/JavacTurbineTest.java index b4c7b32b35..d5fe382b32 100644 --- a/src/java_tools/buildjar/javatests/com/google/devtools/build/java/turbine/javac/JavacTurbineTest.java +++ b/src/java_tools/buildjar/javatests/com/google/devtools/build/java/turbine/javac/JavacTurbineTest.java @@ -231,7 +231,7 @@ public class JavacTurbineTest { try { JavaFileObject sourceFile = processingEnv.getFiler().createSourceFile("Generated", element); try (OutputStream os = sourceFile.openOutputStream()) { - os.write("class Generated {}".getBytes(StandardCharsets.UTF_8)); + os.write("public class Generated {}".getBytes(StandardCharsets.UTF_8)); } } catch (IOException e) { throw new IOError(e); @@ -280,12 +280,12 @@ public class JavacTurbineTest { String text = textify(outputs.get("Generated.class")); String[] expected = { "// class version 51.0 (51)", - "// access flags 0x20", - "class Generated {", + "// access flags 0x21", + "public class Generated {", "", "", - " // access flags 0x0", - " <init>()V", + " // access flags 0x1", + " public <init>()V", "}", "" }; |