Imported GNU Classpath 0.90

Imported GNU Classpath 0.90
       * scripts/makemake.tcl: Set gnu/java/awt/peer/swing to ignore.
       * gnu/classpath/jdwp/VMFrame.java (SIZE): New constant.
       * java/lang/VMCompiler.java: Use gnu.java.security.hash.MD5.
       * java/lang/Math.java: New override file.
       * java/lang/Character.java: Merged from Classpath.
       (start, end): Now 'int's.
       (canonicalName): New field.
       (CANONICAL_NAME, NO_SPACES_NAME, CONSTANT_NAME): New constants.
       (UnicodeBlock): Added argument.
       (of): New overload.
       (forName): New method.
       Updated unicode blocks.
       (sets): Updated.
       * sources.am: Regenerated.
       * Makefile.in: Likewise.

From-SVN: r111942
This commit is contained in:
Mark Wielaard 2006-03-10 21:46:48 +00:00
parent 27079765d0
commit 8aa540d2f7
1367 changed files with 188789 additions and 22762 deletions

View file

@ -157,38 +157,42 @@ public class DataFlavor implements java.io.Externalizable, Cloneable
ClassLoader classLoader)
throws ClassNotFoundException
{
// Bootstrap
try
{
return(Class.forName(className));
return Class.forName(className);
}
catch(Exception e) { ; }
// Commented out for Java 1.1
/*
try
catch(ClassNotFoundException cnfe)
{
return(className.getClass().getClassLoader().findClass(className));
// Ignored.
}
catch(Exception e) { ; }
// System
try
{
return(ClassLoader.getSystemClassLoader().findClass(className));
ClassLoader loader = ClassLoader.getSystemClassLoader();
return Class.forName(className, true, loader);
}
catch(Exception e) { ; }
*/
// FIXME: What is the context class loader?
/*
catch(ClassNotFoundException cnfe)
{
// Ignored.
}
// Context
try
{
ClassLoader loader = Thread.currentThread().getContextClassLoader();
return Class.forName(className, true, loader);
}
catch(Exception e) { ; }
*/
catch(ClassNotFoundException cnfe)
{
// Ignored.
}
if (classLoader != null)
return(classLoader.loadClass(className));
else
throw new ClassNotFoundException(className);
return Class.forName(className, true, classLoader);
throw new ClassNotFoundException(className);
}
private static Class getRepresentationClassFromMime(String mimeString,
@ -203,7 +207,13 @@ public class DataFlavor implements java.io.Externalizable, Cloneable
}
catch(Exception e)
{
throw new IllegalArgumentException("classname: " + e.getMessage());
IllegalArgumentException iae;
iae = new IllegalArgumentException("mimeString: "
+ mimeString
+ " classLoader: "
+ classLoader);
iae.initCause(e);
throw iae;
}
}
else