Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
#MIGRATION_3P_JAVA_ASM__DEFAULT_SERVICE

  - a087e8a1d3a16bff9c533bd800f5978758262248 Update JaCoCo to version 0.8.10 by Evgeny Mandrikov <[email protected]>
  - 0caa0d4214fba986f4b987d0161629238a687dd1 Add support for 'new' after 'invokespecial <init>' (in by... by Eric Bruneton <[email protected]>
  - 579caab5e018bdcbd80ca3601446439f65efd4fb Update SonarQube plugin to latest version. by Eric Bruneton <[email protected]>
  - d70cd319a5a26fd3683ceacc079311b6c3bdb095 Upgrade to Gradle 8.3. by Eric Bruneton <[email protected]>
  - 082e5c985516d5351ba55f337ebb9d3571c5dc53 Increase JVM Metaspace size in an attempt to fix Sonar Gr... by Eric Bruneton <[email protected]>
  - 44ae3de4bfb2aea7e4afe6152bd4b7b8289be9ac Add quotes around jvmargs option. by Eric Bruneton <[email protected]>
  - c890eac5963700541703445d06c62c18e044d671 Fix typo in .gitlab-ci.yml'. by Eric Bruneton <[email protected]>
  - 5d00fe4ea47b17f3d2e981a18ee447d9b1d32de1 Add a getArgumentCount() method in Type. by Eric Bruneton <[email protected]>
  - 10317262ee5f23be4ad8b42f384aebb5d81cad04 Update version number. by Eric Bruneton <[email protected]>
  - af4ee811fde0b14bd7db84aa944a1b3733c37289 Remove an extra space at the end of a line. by Eric Spishak-Thomas <[email protected]>

PiperOrigin-RevId: 574994755
  • Loading branch information
cushon authored and Javac Team committed Oct 20, 2023
1 parent 61bd721 commit b336e3d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ public class test/Test implements java/util/List {
// access flags 0x1
// signature <V::Ljava/lang/Runnable;E:Ljava/lang/Error;>(I)V^TE;
// declaration: void g<V extends java.lang.Runnable, E extends java.lang.Error>(int) throws E
public g(I)V throws java/lang/Error
public g(I)V throws java/lang/Error
// parameter foo
}
12 changes: 11 additions & 1 deletion javatests/com/google/turbine/testing/AsmUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

package com.google.turbine.testing;

import static java.util.stream.Collectors.joining;

import com.google.common.base.CharMatcher;
import com.google.common.base.Splitter;
import java.io.File;
import java.io.PrintWriter;
import java.io.StringWriter;
import org.objectweb.asm.ClassReader;
Expand All @@ -37,7 +42,12 @@ public static String textify(byte[] bytes, boolean skipDebug) {
ClassReader.SKIP_FRAMES
| ClassReader.SKIP_CODE
| (skipDebug ? ClassReader.SKIP_DEBUG : 0));
return sw.toString();
// TODO(cushon): Remove this after next ASM update
// See https://gitlab.ow2.org/asm/asm/-/commit/af4ee811fde0b14bd7db84aa944a1b3733c37289
return Splitter.on("\\R")
.splitToStream(sw.toString())
.map(CharMatcher.is(' ')::trimTrailingFrom)
.collect(joining(File.separator));
}

private AsmUtils() {}
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@
<!-- set heap size to work around http://github.com/travis-ci/travis-ci/issues/3396 -->
<argLine>
-Xmx2g
-Xss2m
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
Expand Down

0 comments on commit b336e3d

Please sign in to comment.