[PATCH] Compilation Errors w/ Java 1.5

Don Schwarz <[email protected]> Sun, 17 Oct 2004 14:47:57 -0400
Newsgroups gmane.comp.java.beanshell.devel
Message-ID <[email protected]>
HI guys,

Java 1.5 added a new interface java.lang.reflect.Type, which conflicts
with bsh.org.objectweb.asm.Type in the imports for
bsh.ClassGeneratorUtil.

If someone applies the following patch, BSH will compile cleanly with Java 1.5.

diff -u -r1.1 ClassGeneratorUtil.java
--- src/bsh/ClassGeneratorUtil.java     21 Apr 2004 04:17:34 -0000      1.1
+++ src/bsh/ClassGeneratorUtil.java     17 Oct 2004 18:18:32 -0000
@@ -34,7 +34,9 @@
 package bsh;

 import bsh.org.objectweb.asm.*;
-import java.lang.reflect.*;
+import java.lang.reflect.Method;
+import java.lang.reflect.Constructor;
+import java.lang.reflect.InvocationTargetException;
 import java.util.ArrayList;
 import java.util.List;

I haven't done extensive testing with Java 1.5.0, but the same unit
tests pass with Java 1.5.0 and 1.4.2_06.  Is someone actively looking
at the outstanding unit test failures?

Thanks,
Don


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl