From: Tomas V. <tom...@gm...> - 2011-01-21 10:08:42
|
In one of my, from Java, generated Obj-C source files I get #import "null.h". Usually I just remove it by hand and then compile it with Xcode but I've tried to track this down. What I found was that sometimes a RegisterSpecList object contains <null>=known-null on which getType().toHuman() will return "null". So what I did was adding another if-statement just checking for this case in the DEXmlvmOutputProcess at line 1116. if (registers.size() == 1) { if ( !registers.get(0).getType().toHuman().equals("null")) { dexInstruction.setAttribute("class-type", registers.get(0).getType().toHuman()); } } I'm not sure this is the right way to go though, but it solved my problem. My Java class looks normal and it imports some other classes and there are some methods in it. I've tried to find the cause of this problem but I just can't find any oddities in that file. -- Quand on veut un mouton, c'est la preuve qu'on existe |