I just tried RetroWeaver for my application, and so far everything seems to work well, but I ran into a minor problem.
It seems that Boolean.parseBoolean(String s) is a new(!) feature of Java 1.5.0.
Now of course it's easy to replace all calls to this method to something like s.equals("true"), but it would be great if RetroWeaver could take care of that.
I ran into the same problem. It is more correct to replace it with s.equalsIgnoreCase("true").
It is even more correct to replace it with a method that also checks s for null; otherwise, code that would work fine in JDK 5.0 will crash with a NullPointerException.
Is parseBoolean included in version 2?
I've got some trouble getting version 2 to work.
I get this:
E:\Programmer\Java\retroweaver\retroweaver-2.0>java -cp release\retroweaver-2.0.
.retroweaver.RetroWeaver JNative.jar JNative2.jar
Thanks for posting that exception trace even if it wasn't directly related to the parseBoolean problem. There was indeed a problem with an NPE in recent changes. That's now fixed in the svn repository.
In fact, you should probably use Weaver instead of RetroWeaver as the main class as the former has more argument checkings and is considered the main entry point. I may remove the ability to use RetroWeaver as the main class in the future.
Just ignore that silly error.
The command is obviously totally wrong.
parseBoolean doesn't seem to work in version 2 though...
Please hit me in the head!
Wrong runtime library in the classpath...
Works like a charm, thanks!
I'm glad you figured out what the problem was. Please let me know in the forum or using a Feature Request if some errors or messages are not clear and should be improved.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.