From b7d0f47debdeacd0a375d71046d0123b1d0767a5 Mon Sep 17 00:00:00 2001 From: Atsushi Eno Date: Thu, 5 Jan 2012 02:40:50 +0900 Subject: [PATCH] Add a nasty workaround for compatibility library jars. --- JavaClass.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/JavaClass.java b/JavaClass.java index b2aa8ff..852e2f3 100644 --- a/JavaClass.java +++ b/JavaClass.java @@ -405,6 +405,10 @@ static String getClassName (Class jclass, boolean isFullname) public void appendToDocument (Document doc, Element parent) { + // FIXME: remove this hack (somehow) + if (jclass.getName ().equals ("android.support.v4.widget.SearchViewCompatHoneycomb")) + return; + int mods = jclass.getModifiers (); Element e = doc.createElement (jclass.isInterface () && !jclass.isAnnotation () ? "interface" : "class"); @@ -447,6 +451,7 @@ else if (iface instanceof ParameterizedType) { iface_elem.appendChild (doc.createTextNode ("\n")); e.appendChild (iface_elem); } + for (Constructor ctor : jclass.getDeclaredConstructors ()) appendCtor (ctor, doc, e);