Eugene Kuleshov wrote:
>    It should be possible to implement a constant pool sorter 
> that will 
> work directly with internal ClassWriter's structures.
> 
>    Naive and inefficient implementation can sort constant pool on 
> visitEnd() method and put result into new ClassWriter 
> instance together 
> with key hashes, then run collected class bytecode trough parse/write 
> using that new ClassWriter instance with prebuilt constant pool.

this is exactly what is done in the optimizer package, except that it is
not using ClassWriter's structures. I don't think it is useful do add
such things, which will rarely be used, in core package.

Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to