Index: compile.py =================================================================== RCS file: /cvsroot/jython/jython/Tools/jythonc/compile.py,v retrieving revision 2.22 diff -u -r2.22 compile.py --- compile.py 30 May 2002 16:20:13 -0000 2.22 +++ compile.py 10 Nov 2003 19:26:13 -0000 @@ -80,8 +80,10 @@ jc = getJavaClass(c) if jc is None and isinstance(c, StringType): jc = getJavaClass("java.lang."+c) - if jc is None: - raise ValueError, "can not find class: "+c + if jc is None: + return c + if jc is None: + raise ValueError, "can not find class: "+c return jc Index: proxies.py =================================================================== RCS file: /cvsroot/jython/jython/Tools/jythonc/proxies.py,v retrieving revision 2.16 diff -u -r2.16 proxies.py --- proxies.py 26 Nov 2001 15:21:09 -0000 2.16 +++ proxies.py 10 Nov 2003 19:26:13 -0000 @@ -1,6 +1,6 @@ # Copyright (c) Corporation for National Research Initiatives -from types import TupleType, IntType +from types import TupleType, IntType, StringType import jast @@ -22,6 +22,8 @@ #Utility functions for converting between java and python types def typeName(cls): + if isinstance(cls,StringType): + return cls if Class.isArray(cls): return typeName(Class.getComponentType(cls))+"[]" else: