The subject line is just a guess. I have a static method:
public static List
findFiles( List paths, List exts, String regexp )
and I have the following sequence in bsh:
BeanShell 1.1a16 - by Pat Niemeyer ([EMAIL PROTECTED])
bsh % import java.util.*;
bsh % import ca.cbc.sportwire.util.*;
bsh % List paths = new ArrayList();
bsh % paths.addAll(Arrays.asList( new String[] { "/etc", "home/garym" }));
bsh % List ext = new ArrayList();
bsh % ext.addAll(Arrays.asList( new String[] { ".rc", ".conf" }));
bsh % List l = PathUtil.findFiles(paths, ext, "mod.*");
// Error: Typed variable declaration : Error in method invocation:
Static method findFiles( java.util.ArrayList, java.util.ArrayList,
java.lang.String ) not found in
class'ca.cbc.sportwire.util.PathUtil' : at Line: 6 : in file:
<unknown file> : PathUtil .findFiles ( paths , ext , "mod.*" )
Other static methods of this class work fine; I only get this problem
with any static methods using List parameters. Is there something
about using interface (List) parameters for concrete (ArrayList)
values that won't work under bsh?
--
Gary Lawrence Murphy <[EMAIL PROTECTED]> TeleDynamics Communications Inc
Business Innovations Through Open Source Systems: http://www.teledyn.com
"Computers are useless. They can only give you answers."(Pablo Picasso)