Skip to content

Commit

Permalink
Silently ignore the D8 desugar SynthesizedClassV2 attribute in ijar
Browse files Browse the repository at this point in the history
V1: 1544777
PiperOrigin-RevId: 444563271
  • Loading branch information
Googler authored and copybara-github committed Apr 26, 2022
1 parent e621d6f commit 91f8421
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion third_party/ijar/classfile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,8 @@ void HasAttrs::ReadAttrs(const u1 *&p) {
// 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());
}
Expand Down

0 comments on commit 91f8421

Please sign in to comment.