From 3d941be0c42ceb03d9c956b5592da38c23c50372 Mon Sep 17 00:00:00 2001 From: Brad Corso Date: Thu, 3 Aug 2023 08:53:07 -0700 Subject: [PATCH] Always load `com.google.devtools.ksp.symbol` from the same classloader. This is similar to CL/538883944. The KSP symbols are exposed through our `dagger.spi.model` classes, so they need to also be included in this list too. PiperOrigin-RevId: 553491268 Change-Id: I88540674348d80c30313378c2cd5a752da548ca0 --- .../com/google/devtools/build/buildjar/javac/BlazeJavacMain.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/BlazeJavacMain.java b/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/BlazeJavacMain.java index 062c22dc443361..e74cbbe69e025f 100644 --- a/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/BlazeJavacMain.java +++ b/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/BlazeJavacMain.java @@ -402,6 +402,7 @@ protected Class findClass(String name) throws ClassNotFoundException { || name.startsWith("com.google.common.base.") || name.startsWith("com.google.common.graph.") || name.startsWith("com.google.common.regex.") + || name.startsWith("com.google.devtools.ksp.symbol.") || name.startsWith("org.checkerframework.shaded.dataflow.") || name.startsWith("org.checkerframework.errorprone.dataflow.") || name.startsWith("com.sun.source.")