next up previous
Next: Writing new retargetable reflective Up: Reconciliation via Abstract Representation Previous: Reconciliation via Abstract Representation

Retargeting legacy reflective code

Applying INTERPRETER to this grammar would yield a precise definition of a class hierarchy, a mirror of java.lang.reflect. Legacy code that works with reflection also works with the mirrored repository with trivial code modifications--only import declarations need to be changed. As the name suggests, the mirrored repository is fully compatible with the reflection API. We have also built a tool that parses source files and stores them in this repository. We employ these facilities to demonstrate pluggability's advantages for testing and debugging programs that use reflection.



David H. Lorenz 2003-02-17