From 474a82112c9a56494069d6d4f315f50d03f88b59 Mon Sep 17 00:00:00 2001 From: Atsushi Eno Date: Thu, 22 Mar 2012 18:38:53 +0900 Subject: [PATCH] Add another compatibility jar breakage workaround. --- JavaClass.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/JavaClass.java b/JavaClass.java index 4435668..d3831d6 100644 --- a/JavaClass.java +++ b/JavaClass.java @@ -184,6 +184,8 @@ void appendField (Field field, FieldNode asmField, Document doc, Element parent) if (asmField == null) // this happens to couple of fields on java.awt.font.TextAttribute, java.lang.Double/Float and so on. System.err.println ("!!!!! WARNING!!! null ASM FieldNode for " + field); + //else if (field.isEnumConstant ()) + // e.setAttribute ("value", field.getName ()); else if (asmField.value != null) { String type = e.getAttribute ("type"); boolean isPublic = Modifier.isPublic (mods); @@ -407,9 +409,11 @@ static String getClassName (Class jclass, boolean isFullname) public void appendToDocument (Document doc, Element parent) { - // FIXME: remove this hack (somehow) + // FIXME: remove these hacks (somehow / this is NoClassDefFoundError that we cannot avoid by our own code) if (jclass.getName ().equals ("android.support.v4.widget.SearchViewCompatHoneycomb")) return; + if (jclass.getName ().equals ("android.support.v4.app.ShareCompatICS")) + return; int mods = jclass.getModifiers ();