You are right, that is a problem. However, I do not think that the lookup
would need to be based on the class as long as it has the same priviledges.
In this case, the lookupClass method could return null or throw an
unsupported operation exception if the class is yet unloaded. I do not
think that this would be a show stopper.

2017-03-11 18:55 GMT+01:00 Michael Rasmussen <
michael.rasmus...@zeroturnaround.com>:

> > For this to work, I do however think it is crucial to add a parameter to
> > the ClassFileTransformer::transform method where a lookup object should
> be
> > provided as an additional argument in order to allow defining additional
> > classes in the instrumented class's loader and module.
>
> What should the Lookup be based on though, since you don't have a Class
> yet?
>
> /Michael
>

Reply via email to