----- Original Message -----
> From: Jason Pell <ja...@pellcorp.com>
> To: kilimt...@googlegroups.com
>
> Any chance you could provide your asm 4 compatible version of kilim
> itself? I tried copying your com.googlecode.kilimbuilder.kilim from
> the branch before-javassist-refactoring. But I cannot get that to
> compile using build.sh?
>
Oh sorry, I didn't think anybody would actually to check it out and try use it :-).
Right now I only build and run it it in Eclipse, and I build everything as Osgi plugins, so its a pretty non-standard build.
I haven't updated the build.sh to properly build it, but I will, that should be easy.
> It does not solve your problem, but many users of kilim are eagerly
> awaiting java 7 support as java 6 is no longer receiving any oracle
> updates come february.
>
But like I said, even though it uses ASM4, this new build isn't going to work in Java7 either because it still doesn't produce the correct stack maps for methods.
I have merely made kilim work with ASM4, but I can't get ASM4 to generate code with proper stack frames.
So its a FAIL.
>
> When I tried to use your code after changing build.sh to use asm-4.1 I
> get index out of bounds errors on weaving?
>
> Any ideas?
>
Yes, the current checked in version configures ASM to automatically generate stack maps and that causes those OutOfBounds errors.
I ran the kilim unit tests BEFORE configuring kilim to generate stack maps.
Then I made the changes to enable the automatic stack map generation and thats when things fell apart.
I've investigated the cause of those errors and determined that I can't fix them without a major investment in learning ASM internals, and I don't wanna go there.
I will check in the changes to turn that off stack maps (change all calls to ClassWriter(ClassWriter.FRAMES) to ClassWriter(0)) and that will make those errors go away, but ASM4 isnt of much value when used that way.