Skip to content

Commit

Permalink
Add another compatibility jar breakage workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
Atsushi Eno committed Mar 22, 2012
1 parent c1e201b commit 474a821
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion JavaClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 ();

Expand Down

0 comments on commit 474a821

Please sign in to comment.