Silently ignore the D8 desugar SynthesizedClassV2 attribute in ijar
V1: https://github.com/bazelbuild/bazel/commit/154477719258dbda928dd7c977e9ebe1b515efd8
PiperOrigin-RevId: 444563271
diff --git a/third_party/ijar/classfile.cc b/third_party/ijar/classfile.cc
index 22ad3ac..a7e73d5 100644
--- a/third_party/ijar/classfile.cc
+++ b/third_party/ijar/classfile.cc
@@ -1542,7 +1542,8 @@
// says this is ok, so long as we handle the mandatory attributes.
// Don't even warn for the D8 desugar SynthesizedClass attribute. It is
// not relevant for ijar.
- if (attr_name != "com.android.tools.r8.SynthesizedClass") {
+ if (attr_name != "com.android.tools.r8.SynthesizedClass" &&
+ attr_name != "com.android.tools.r8.SynthesizedClassV2") {
fprintf(stderr, "ijar: skipping unknown attribute: \"%s\".\n",
attr_name.c_str());
}