jakarta-bcel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <m.d...@4flow.de>
Subject Re: Dealing with Repository class.
Date Wed, 17 Apr 2002 09:11:18 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message