Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

retroweaver - anyone had a go at fixing it for current jdk1.5.0 release?

1 view
Skip to first unread message

Alex Hunsley

unread,
Oct 11, 2004, 11:10:22 AM10/11/04
to
I've just tried using retroweaver (http://retroweaver.sourceforge.net/)
which claims to be able to mong 1.5 bytecode into 1.4 (and pre)
compatible bytecode.
Unfortunately, it appears that retroweaver was written with a slightly
out of date beta of jdk1.5, as it calls methods that don't exist:

[RetroWeaver] Weaving C:\cygwin\home\alex\jtest\Test.class
java.lang.NoSuchMethodError:
java.lang.String.replace(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
at com.rc.retroweaver.RetroWeaver.fixupFormat(RetroWeaver.java:207)
at com.rc.retroweaver.RetroWeaver.weave(RetroWeaver.java:79)
at com.rc.retroweaver.Weaver.invokeWeaver(Weaver.java:107)
at com.rc.retroweaver.Weaver.main(Weaver.java:72)

(The replace method in the string class takes two CharacterSet
references, not two strings.) Given that the source is available, it's
feasible to fix it, but I'm wondering if anyone else has done that same
successfully? Or tried and found it problematic?

alex

Toby Reyelts

unread,
Oct 12, 2004, 1:50:40 AM10/12/04
to
Alex Hunsley <la...@tardis.ed.ac.molar.uk> wrote in message news:<10ml8hj...@corp.supernews.com>...

> I've just tried using retroweaver (http://retroweaver.sourceforge.net/)
> which claims to be able to mong 1.5 bytecode into 1.4 (and pre)
> compatible bytecode.
> Unfortunately, it appears that retroweaver was written with a slightly
> out of date beta of jdk1.5, as it calls methods that don't exist:

It's a documented bug on the SF site. All you have to do is type "ant
clean" and then "ant" to rebuild Retroweaver with your JDK. I'll be
putting out a new release soon that will be compiled with JDK 1.5
final out of the box.

God bless,
-Toby Reyelts

Alex Hunsley

unread,
Oct 12, 2004, 5:39:04 AM10/12/04
to

Hi Toby
thanks for that. Obviously I didn't scour the site enough! :)
alex

Alex Hunsley

unread,
Oct 12, 2004, 6:19:13 AM10/12/04
to

Sorry, perhaps I am being really silly here, but I have looked at the
site again and can't find what I should be downloading. The package I
originally downloaded yesterday was:

3/24/2004 - Retroweaver 1.0 RC5 Released.


...is this the one that should work?

thanks
alex

Toby Reyelts

unread,
Oct 17, 2004, 1:18:32 AM10/17/04
to
Alex Hunsley <la...@tardis.ed.ac.molar.uk> wrote in message

> Sorry, perhaps I am being really silly here, but I have looked at the

> site again and can't find what I should be downloading. The package I
> originally downloaded yesterday was:
>
> 3/24/2004 - Retroweaver 1.0 RC5 Released.
>
>
> ...is this the one that should work?

The latest available version on SF is 1.0 FCS, and it has been
compiled with JDK 1.5 FCS.

God bless,
-Toby Reyelts

0 new messages