Hi,
> STEP 1 --
> ---------
> Create a new class
> "org.apache.bcel.util.ClassRepository"
That's actually what I meant.
> Modify JavaClass objects to hold reference
> to ClassRepository
Hmm, I don't think they should reference the repository since they
have not necessarily been created this way.
> STEP 2 --
> ---------
> Deprecate ClassPath class.
Why? I think it may be still useful.
> Deprecate Repository class.
>
> Rewrite Repository class to use the default
> ClassRepository.
Ok.
> Move the following methods to JavaClass:
> getSuperClasses
> getInterfaces
> instanceOf
> implementationOf
That's ok for me.
> Reimplement those methods with the stored
> ClassRepository
>
> Step 3 and beyond -
> -------------------
> Modify ClassLoader to use the new ClassRepository.
>
> Ensure ObjectType and ArrayType are aware of
> the ClassRepository.
>
> Identify areas of BCEL which currently use the
> deprecated methods, and fix.
I just wonder how much effort this may cause ...
Cheers
Markus
|