Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Patch

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Bradley S. Huffman" <hip AT a.cs.okstate.edu>
  • To: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] Patch
  • Date: Wed, 18 Sep 2002 19:50:25 -0500

Attribute.java has a recursive constructor and JDK 1.4 complained about
the signature of initCause in ParseException.java.

Brad

*** Attribute.java Wed Sep 18 19:42:11 2002
--- Attribute.new Wed Sep 18 19:40:15 2002
***************
*** 56,62 ****
* but will be automatically escaped when the attribute is serialized.
*/
public Attribute(String localName, String value, Type type) {
! this(localName, value, type);
}

/**
--- 56,62 ----
* but will be automatically escaped when the attribute is serialized.
*/
public Attribute(String localName, String value, Type type) {
! this(localName, "", value, type);
}

/**

*** ParseException.java Wed Sep 18 19:44:25 2002
--- ParseException.new Wed Sep 18 19:40:35 2002
***************
*** 16,22 ****
* @author Elliotte Rusty Harold
*
*/
! public class ParseException extends Exception {

private Throwable cause;
private int lineNumber = -1;
--- 16,22 ----
* @author Elliotte Rusty Harold
*
*/
! public class ParseException extends RuntimeException {

private Throwable cause;
private int lineNumber = -1;
***************
*** 125,131 ****
* @param cause
* @return this exception object
*/
! public ParseException initCause(Throwable cause) {
if (this.cause == null) this.cause = cause;
else throw new IllegalStateException("Cannot reset the
cause");
return this;
--- 125,131 ----
* @param cause
* @return this exception object
*/
! public Throwable initCause(Throwable cause) {
if (this.cause == null) this.cause = cause;
else throw new IllegalStateException("Cannot reset the
cause");
return this;




Archive powered by MHonArc 2.6.24.

Top of Page