Providing a Java agent to check that ASM classes are correctly used?
[email protected] Sun, 28 Oct 2018 13:34:24 +0100 (CET)
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <462887466.1785391478.1540730064441.JavaMail.root@zimbra73-e12.priv.proxad.net> |
This is a multi-part message in MIME format... ------------=_1540730070-11333-2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit By design, the ASM core and tree packages do not check that their methods are correctly used, in order to get the best possible performance. Instead, some checks are provided in the util package, by the Check...Adapter classes. The drawback is that, to benefit from these checks, one must manually and explicitly insert Check...Adapter instances in class generator and adapter chains. And it is not always easy to do this only for unit tests, or conditionally at runtime, etc. Also, inserting intermediate adapters is not fully transparent in some cases. Hence the idea of providing these checks via a Java agent, which could be used only for unit tests, or with the real code, when needed for debugging purposes, etc. This agent would instrument the ASM classes (both the ones provided by the framework, and those provided by the user) in order to insert code checking pre and post conditions (delegating to Check...Adapter when possible). Do you think this would be useful for you? If yes, we could work on that. Eric ------------=_1540730070-11333-2 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit -- 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 ------------=_1540730070-11333-2--