Thanks. It helps to see the evolution. Are inner classes necessary? It looks like the inner classes were only regenerated when the *.expose file changed, but otherwise the java code could be changed without needing to run gexpose again. I don't see any references to the containing object's instance fields, but maybe the examples I've looked are too simple.

If the new byte code generator exposer didn't modify the source class it would be as easy to work on as it was with gexpose.

- Ken

On Thu, Sep 9, 2010 at 2:42 AM, Jim Baker <> wrote:
On Wed, Sep 8, 2010 at 12:04 PM, Ken Fox <> wrote:

ExposedTypeProcessor and friends have given me a real beating. I'm hoping the archives will have some discussion of them. If not, where's the best place to get an overview? The wiki has some good documentation for the annotations, but not for the generated byte code.

You might want to take a look at Jython 2.2 to see the alternative strategy that was used prior to our switchover to using annotations, namely the process around

An example is seen here:

The generated code has been improved since then, and it's far easier to use, but essentially it's the same as our annotation-based expose, so seeing these inner classes explicitly might be helpful.

- Jim