Re: Re: ASM4 / Java 7
Eliot Moss <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
On 8/26/2011 9:32 PM, Eugene Kuleshov wrote: > Jeremy, > > The problem is that code from the test you are referring to is too > naive to be ready for use in production. For instance, it should > maintain some kind of repository of the loaded class info and have > some kind of abstraction for loading class data. Our original > conclusion was that might be out of scope for ASM, but if you believe > the issue became common for Java 7, perhaps we may have to add > something to the commons package. Now it is only matter of finding a > volunteer. :) > > regards, > Eugene Hmmm ... the version I wrote does maintain a *kind* of "repository" of superclass/superinterface information gathered from each class processed by the ClassAdapter. It does assume that: a) all superclasses / superinterfaces are processed; and b) they are processed before the class that inherits from them. That is natural in the way of class loaders, but perhaps not universal for rewriters. It could be that in general there needs to be a way to request and load information about superclasses / superinterfaces if they have not yet been seen. In my particular application that would not happen. However, it would not be difficult to adjust the code to provide a method, that one might override, to try to obtain information in that case, and to fail if it cannot be obtained ... Regards -- Eliot Moss
message-footer.txt
(text/plain, 238 B)
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws