Closed quizzo closed 9 years ago
Hello,
Averroes will only remove classes that it think are not needed to be present in the generated placeholder file, which is obviously not the case here.
Could you please send me the input jar files for both the application and library, and the settings you used to run Averroes? I'll try to reproduce the problem on my side.
cheers, Karim
Shared a dropbox link with you
Any updates regarding this issue?
Hi quizzo,
I'm really sorry it took me so long to get back to you. I was caught up in some teaching duties.
True, Averroes hollows java.util.ArrayList of all its unnecessary members (fields, methods, classes). However, Averroes creates "stub" classes for method return types that it finds no candidates for. In your cases here, Averroes will create the class IteratorAverroes() that implements the Iterator interface. It will instantiate an object of that class inside the Averroes.doItAll() method. Therefore, calls to the iterator() method will return that object of type IteratorAverroes (which is a subtype of Iterator).
Isn't that the case for your example?
oh, I forgot to add that you might want to use the latest codebase of Averroes. I've updated it to use command line arguments instead of properties file (everything else is the same).
Great. I think this issue may be marked as closed
Hello,
I ran Averroes on the following code: list is
ArrayList<Integer> arraySimple = new ArrayList<Integer>();
that was assigned variables from a txt file viaBufferedReader
:the placeholder-lib.jar indicated that I need Java.Util.ArrayList but when it hollows it, it removes inner classes like iter, that is actually needed for a sound slice in the useForLoop case.
Any suggestions?