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

A

Alex Hunsley

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
 
T

Toby Reyelts

Alex Hunsley said:
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
 
A

Alex Hunsley

Toby said:
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

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

Alex Hunsley

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

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
 
T

Toby Reyelts

Alex Hunsley said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top