Re: Dealing with Repository class.

<[email protected]>
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <32879104985C5A4989420398DEF75430045E65@4flowexsrv.berlin.4flow.de>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.