Import GNU Classpath (classpath-0_97_2-release).
libjava/ 2008-06-28 Matthias Klose <doko@ubuntu.com> Import GNU Classpath (classpath-0_97_2-release). * Regenerate class and header files. * Regenerate auto* files. * gcj/javaprims.h: Define jobjectRefType. * jni.cc (_Jv_JNI_GetObjectRefType): New (stub only). (_Jv_JNIFunctions): Initialize GetObjectRefType. * gnu/classpath/jdwp/VMVirtualMachine.java, java/security/VMSecureRandom.java: Merge from classpath. * HACKING: Fix typo. * ChangeLog-2007: New file. * configure.ac: Set JAVAC, pass --disable-regen-headers to classpath. libjava/classpath/ 2008-06-28 Matthias Klose <doko@ubuntu.com> * m4/ac_prog_javac.m4: Disable check for JAVAC, when not configured with --enable-java-maintainer-mode. * aclocal.m4, configure: Regenerate. * native/jni/gstreamer-peer/Makefile.am: Do not link with libclasspathnative. * native/jni/gstreamer-peer/Makefile.in: Regenerate. * tools/Makefile.am, lib/Makefile.am: Use JAVAC for setting JCOMPILER, drop flags not understood by gcj. From-SVN: r137223
This commit is contained in:
@@ -542,7 +542,7 @@ final class XmlParser
|
||||
private void error(String message, char textFound, String textExpected)
|
||||
throws SAXException
|
||||
{
|
||||
error(message, new Character(textFound).toString(), textExpected);
|
||||
error(message, Character.toString(textFound), textExpected);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2281,7 +2281,7 @@ loop2:
|
||||
{
|
||||
// too big for surrogate
|
||||
error("character reference " + value + " is too large for UTF-16",
|
||||
new Integer(value).toString(), null);
|
||||
Integer.toString(value), null);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2375,7 +2375,7 @@ loop2:
|
||||
{
|
||||
// too big for surrogate
|
||||
error("character reference " + value + " is too large for UTF-16",
|
||||
new Integer(value).toString(), null);
|
||||
Integer.toString(value), null);
|
||||
}
|
||||
if (doFlush)
|
||||
{
|
||||
@@ -3095,7 +3095,6 @@ loop:
|
||||
nameBufferPos = 0;
|
||||
|
||||
// Read the first character.
|
||||
loop:
|
||||
while (true)
|
||||
{
|
||||
c = readCh();
|
||||
@@ -3295,7 +3294,7 @@ loop:
|
||||
catch (EOFException e)
|
||||
{
|
||||
error("end of input while looking for delimiter (started on line "
|
||||
+ startLine + ')', null, new Character(delim).toString());
|
||||
+ startLine + ')', null, Character.toString(delim));
|
||||
}
|
||||
inLiteral = false;
|
||||
expandPE = saved;
|
||||
@@ -3599,7 +3598,7 @@ loop:
|
||||
|
||||
if (c != delim)
|
||||
{
|
||||
error("required character", c, new Character(delim).toString());
|
||||
error("required character", c, Character.toString(delim));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4299,7 +4298,7 @@ loop:
|
||||
}
|
||||
else
|
||||
{
|
||||
pushString(null, new Character(c).toString());
|
||||
pushString(null, Character.toString(c));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,6 @@ exception statement from your version. */
|
||||
|
||||
package gnu.xml.dom.html2;
|
||||
|
||||
import org.w3c.dom.Node;
|
||||
import org.w3c.dom.html2.HTMLButtonElement;
|
||||
import org.w3c.dom.html2.HTMLFormElement;
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ exception statement from your version. */
|
||||
package gnu.xml.dom.html2;
|
||||
|
||||
import gnu.xml.dom.DomDOMException;
|
||||
import gnu.xml.dom.DomElement;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
|
||||
@@ -38,8 +38,6 @@ exception statement from your version. */
|
||||
|
||||
package gnu.xml.dom.html2;
|
||||
|
||||
import gnu.javax.swing.text.html.parser.support.Parser;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Reader;
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ implements XPathResult
|
||||
case STRING_TYPE:
|
||||
return getStringValue ();
|
||||
case NUMBER_TYPE:
|
||||
return new Double (getNumberValue ()).toString ();
|
||||
return Double.toString (getNumberValue ());
|
||||
case BOOLEAN_TYPE:
|
||||
return Boolean.valueOf (getBooleanValue ()).toString ();
|
||||
case UNORDERED_NODE_SNAPSHOT_TYPE:
|
||||
|
||||
@@ -743,7 +743,7 @@ public class DomConsumer implements EventConsumer
|
||||
// ELSE ... search up the tree we've been building
|
||||
for (Node n = top;
|
||||
n != null && n.getNodeType () != Node.DOCUMENT_NODE;
|
||||
n = (Node) n.getParentNode ()) {
|
||||
n = n.getParentNode ()) {
|
||||
if (n.getNodeType () == Node.ENTITY_REFERENCE_NODE)
|
||||
continue;
|
||||
Element e = (Element) n;
|
||||
|
||||
@@ -187,14 +187,14 @@ public class EventFilter
|
||||
Method m = null;
|
||||
|
||||
try {
|
||||
m = Thread.class.getMethod("getContextClassLoader", null);
|
||||
m = Thread.class.getMethod("getContextClassLoader");
|
||||
} catch (NoSuchMethodException e) {
|
||||
// Assume that we are running JDK 1.1, use the current ClassLoader
|
||||
return EventFilter.class.getClassLoader();
|
||||
}
|
||||
|
||||
try {
|
||||
return (ClassLoader) m.invoke(Thread.currentThread(), null);
|
||||
return (ClassLoader) m.invoke(Thread.currentThread());
|
||||
} catch (IllegalAccessException e) {
|
||||
// assert(false)
|
||||
throw new UnknownError(e.getMessage());
|
||||
|
||||
@@ -56,11 +56,11 @@ public class AttributeImpl
|
||||
|
||||
protected final QName name;
|
||||
protected final String value;
|
||||
protected final QName type;
|
||||
protected final String type;
|
||||
protected final boolean specified;
|
||||
|
||||
protected AttributeImpl(Location location,
|
||||
QName name, String value, QName type,
|
||||
QName name, String value, String type,
|
||||
boolean specified)
|
||||
{
|
||||
super(location);
|
||||
@@ -85,7 +85,7 @@ public class AttributeImpl
|
||||
return value;
|
||||
}
|
||||
|
||||
public QName getDTDType()
|
||||
public String getDTDType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,6 @@ exception statement from your version. */
|
||||
|
||||
package gnu.xml.stream;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Writer;
|
||||
import javax.xml.stream.Location;
|
||||
import javax.xml.stream.XMLStreamException;
|
||||
|
||||
@@ -66,7 +66,6 @@ import org.xml.sax.SAXParseException;
|
||||
import org.xml.sax.XMLReader;
|
||||
import org.xml.sax.ext.Attributes2;
|
||||
import org.xml.sax.ext.DeclHandler;
|
||||
import org.xml.sax.ext.EntityResolver2;
|
||||
import org.xml.sax.ext.LexicalHandler;
|
||||
import org.xml.sax.ext.Locator2;
|
||||
|
||||
@@ -234,7 +233,7 @@ public class SAXParser
|
||||
return baseAware ? Boolean.TRUE : Boolean.FALSE;
|
||||
if ((GNU_PROPERTIES + "document-xml-encoding").equals(name))
|
||||
return xmlEncoding;
|
||||
throw new SAXNotSupportedException(name);
|
||||
throw new SAXNotRecognizedException(name);
|
||||
}
|
||||
|
||||
public boolean isXIncludeAware()
|
||||
|
||||
@@ -51,7 +51,6 @@ import javax.xml.namespace.QName;
|
||||
import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
import javax.xml.stream.XMLInputFactory;
|
||||
import javax.xml.stream.XMLStreamConstants;
|
||||
import javax.xml.stream.XMLStreamException;
|
||||
import javax.xml.stream.XMLStreamReader;
|
||||
@@ -500,7 +499,7 @@ class XIncludeFilter
|
||||
return event;
|
||||
case XPathResult.NUMBER_TYPE:
|
||||
double nval = result.getNumberValue();
|
||||
String ntext = new Double(nval).toString();
|
||||
String ntext = Double.toString(nval);
|
||||
buf = ntext.toCharArray();
|
||||
len = buf.length;
|
||||
result = null;
|
||||
|
||||
@@ -165,7 +165,7 @@ public class XMLEventAllocatorImpl
|
||||
attributes.add(new AttributeImpl(location,
|
||||
reader.getAttributeName(i),
|
||||
reader.getAttributeValue(i),
|
||||
QName.valueOf(reader.getAttributeType(i)),
|
||||
reader.getAttributeType(i),
|
||||
reader.isAttributeSpecified(i)));
|
||||
return new StartElementImpl(location,
|
||||
reader.getName(),
|
||||
|
||||
@@ -79,20 +79,20 @@ public class XMLEventFactoryImpl
|
||||
{
|
||||
return new AttributeImpl(location,
|
||||
new QName(namespaceURI, localName, prefix),
|
||||
value, QName.valueOf("CDATA"), true);
|
||||
value, "CDATA", true);
|
||||
}
|
||||
|
||||
public Attribute createAttribute(String localName, String value)
|
||||
{
|
||||
return new AttributeImpl(location,
|
||||
new QName(localName),
|
||||
value, QName.valueOf("CDATA"), true);
|
||||
value, "CDATA", true);
|
||||
}
|
||||
|
||||
public Attribute createAttribute(QName name, String value)
|
||||
{
|
||||
return new AttributeImpl(location, name, value,
|
||||
QName.valueOf("CDATA"), true);
|
||||
"CDATA", true);
|
||||
}
|
||||
|
||||
public Namespace createNamespace(String namespaceURI)
|
||||
|
||||
@@ -40,7 +40,6 @@ package gnu.xml.stream;
|
||||
import java.io.Writer;
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.stream.Location;
|
||||
import javax.xml.stream.XMLStreamConstants;
|
||||
import javax.xml.stream.XMLStreamException;
|
||||
import javax.xml.stream.events.Characters;
|
||||
import javax.xml.stream.events.EndElement;
|
||||
|
||||
@@ -177,11 +177,6 @@ public class XMLParser
|
||||
*/
|
||||
private int event;
|
||||
|
||||
/**
|
||||
* Whether we are looking ahead. Used by hasNext.
|
||||
*/
|
||||
private boolean lookahead;
|
||||
|
||||
/**
|
||||
* The element name stack. The first element in this stack will be the
|
||||
* root element.
|
||||
@@ -1013,24 +1008,12 @@ public class XMLParser
|
||||
public boolean hasNext()
|
||||
throws XMLStreamException
|
||||
{
|
||||
if (event == XMLStreamConstants.END_DOCUMENT)
|
||||
return false;
|
||||
if (!lookahead)
|
||||
{
|
||||
next();
|
||||
lookahead = true;
|
||||
}
|
||||
return event != -1;
|
||||
return (event != XMLStreamConstants.END_DOCUMENT && event != -1);
|
||||
}
|
||||
|
||||
public int next()
|
||||
throws XMLStreamException
|
||||
{
|
||||
if (lookahead)
|
||||
{
|
||||
lookahead = false;
|
||||
return event;
|
||||
}
|
||||
if (event == XMLStreamConstants.END_ELEMENT)
|
||||
{
|
||||
// Pop namespace context
|
||||
|
||||
@@ -40,7 +40,6 @@ package gnu.xml.transform;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.CharBuffer;
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
@@ -51,7 +51,6 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.StringTokenizer;
|
||||
import java.util.TreeSet;
|
||||
import javax.xml.XMLConstants;
|
||||
import javax.xml.namespace.NamespaceContext;
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
@@ -170,7 +170,7 @@ public class Resolver implements EntityResolver, Cloneable
|
||||
* Constructs a resolver which understands how to map PUBLIC identifiers
|
||||
* to other URIs, typically for local copies of standard DTD components.
|
||||
*
|
||||
* @param dictionary maps PUBLIC identifiers to URIs. This is not
|
||||
* @param dict maps PUBLIC identifiers to URIs. This is not
|
||||
* copied; subsequent modifications will be reported through the
|
||||
* resolution operations.
|
||||
*/
|
||||
|
||||
@@ -37,8 +37,6 @@ exception statement from your version. */
|
||||
|
||||
package gnu.xml.validation.datatype;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
import javax.xml.XMLConstants;
|
||||
import javax.xml.namespace.QName;
|
||||
import org.relaxng.datatype.DatatypeException;
|
||||
|
||||
@@ -38,7 +38,6 @@ exception statement from your version. */
|
||||
package gnu.xml.validation.datatype;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
import java.util.TreeSet;
|
||||
import javax.xml.XMLConstants;
|
||||
|
||||
@@ -38,8 +38,6 @@ exception statement from your version. */
|
||||
package gnu.xml.validation.datatype;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
import javax.xml.XMLConstants;
|
||||
import javax.xml.namespace.QName;
|
||||
import org.relaxng.datatype.DatatypeException;
|
||||
|
||||
@@ -38,7 +38,6 @@ exception statement from your version. */
|
||||
package gnu.xml.validation.datatype;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
import java.util.TreeSet;
|
||||
import javax.xml.XMLConstants;
|
||||
|
||||
@@ -38,7 +38,6 @@ exception statement from your version. */
|
||||
package gnu.xml.validation.datatype;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
import java.util.TreeSet;
|
||||
import javax.xml.XMLConstants;
|
||||
|
||||
@@ -37,8 +37,6 @@ exception statement from your version. */
|
||||
|
||||
package gnu.xml.validation.datatype;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
import javax.xml.XMLConstants;
|
||||
import javax.xml.namespace.QName;
|
||||
import org.relaxng.datatype.DatatypeException;
|
||||
|
||||
@@ -37,8 +37,6 @@ exception statement from your version. */
|
||||
|
||||
package gnu.xml.validation.datatype;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
import javax.xml.XMLConstants;
|
||||
import javax.xml.namespace.QName;
|
||||
import org.relaxng.datatype.DatatypeException;
|
||||
|
||||
@@ -40,7 +40,6 @@ package gnu.xml.validation.datatype;
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
import java.util.regex.Matcher;
|
||||
import javax.xml.XMLConstants;
|
||||
import javax.xml.namespace.QName;
|
||||
import org.relaxng.datatype.Datatype;
|
||||
import org.relaxng.datatype.DatatypeException;
|
||||
|
||||
@@ -37,12 +37,8 @@ exception statement from your version. */
|
||||
|
||||
package gnu.xml.validation.datatype;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
import javax.xml.XMLConstants;
|
||||
import javax.xml.namespace.QName;
|
||||
import org.relaxng.datatype.DatatypeException;
|
||||
import org.relaxng.datatype.ValidationContext;
|
||||
|
||||
/**
|
||||
* The XML Schema string type.
|
||||
|
||||
@@ -37,8 +37,6 @@ exception statement from your version. */
|
||||
|
||||
package gnu.xml.validation.datatype;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import javax.xml.namespace.QName;
|
||||
/**
|
||||
* Abstract base class for XML Schema datatypes.
|
||||
|
||||
@@ -39,7 +39,6 @@ package gnu.xml.validation.datatype;
|
||||
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.regex.Pattern;
|
||||
import javax.xml.namespace.QName;
|
||||
import org.relaxng.datatype.Datatype;
|
||||
import org.relaxng.datatype.DatatypeBuilder;
|
||||
import org.relaxng.datatype.DatatypeException;
|
||||
|
||||
@@ -51,7 +51,6 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import javax.xml.XMLConstants;
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
|
||||
@@ -37,7 +37,6 @@ exception statement from your version. */
|
||||
|
||||
package gnu.xml.validation.xmlschema;
|
||||
|
||||
import org.w3c.dom.TypeInfo;
|
||||
import gnu.xml.validation.datatype.SimpleType;
|
||||
|
||||
/**
|
||||
|
||||
@@ -38,7 +38,6 @@ exception statement from your version. */
|
||||
package gnu.xml.validation.xmlschema;
|
||||
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.StringTokenizer;
|
||||
import javax.xml.XMLConstants;
|
||||
@@ -49,11 +48,8 @@ import org.relaxng.datatype.helpers.DatatypeLibraryLoader;
|
||||
import org.w3c.dom.NamedNodeMap;
|
||||
import org.w3c.dom.Node;
|
||||
import gnu.xml.validation.datatype.Annotation;
|
||||
import gnu.xml.validation.datatype.AtomicSimpleType;
|
||||
import gnu.xml.validation.datatype.ListSimpleType;
|
||||
import gnu.xml.validation.datatype.SimpleType;
|
||||
import gnu.xml.validation.datatype.Type;
|
||||
import gnu.xml.validation.datatype.UnionSimpleType;
|
||||
|
||||
/**
|
||||
* Parses an XML Schema DOM tree, constructing a compiled internal
|
||||
|
||||
@@ -37,7 +37,6 @@ exception statement from your version. */
|
||||
|
||||
package gnu.xml.validation.xmlschema;
|
||||
|
||||
import org.w3c.dom.TypeInfo;
|
||||
import gnu.xml.validation.datatype.SimpleType;
|
||||
import gnu.xml.validation.datatype.Type;
|
||||
|
||||
|
||||
@@ -44,7 +44,6 @@ package gnu.xml.xpath;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import javax.xml.namespace.NamespaceContext;
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.xpath.XPathFunctionResolver;
|
||||
|
||||
Reference in New Issue
Block a user