dgraham 2004/01/17 09:35:28 Modified: validator/src/share/org/apache/commons/validator Arg.java Var.java Field.java Msg.java Log: Throw RuntimeException instead of InternalError if clone fails. JVM should be the only one throwing InternalError. Revision Changes Path 1.16 +4 -4 jakarta-commons/validator/src/share/org/apache/commons/validator/Arg.java Index: Arg.java =================================================================== RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Arg.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- Arg.java 11 Jan 2004 23:30:20 -0000 1.15 +++ Arg.java 17 Jan 2004 17:35:27 -0000 1.16 @@ -120,7 +120,7 @@ return super.clone(); } catch(CloneNotSupportedException e) { - throw new InternalError(e.toString()); + throw new RuntimeException(e.toString()); } } 1.10 +4 -4 jakarta-commons/validator/src/share/org/apache/commons/validator/Var.java Index: Var.java =================================================================== RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Var.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- Var.java 11 Jan 2004 23:30:20 -0000 1.9 +++ Var.java 17 Jan 2004 17:35:27 -0000 1.10 @@ -163,7 +163,7 @@ return super.clone(); } catch(CloneNotSupportedException e) { - throw new InternalError(e.toString()); + throw new RuntimeException(e.toString()); } } 1.29 +4 -4 jakarta-commons/validator/src/share/org/apache/commons/validator/Field.java Index: Field.java =================================================================== RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Field.java,v retrieving revision 1.28 retrieving revision 1.29 diff -u -r1.28 -r1.29 --- Field.java 11 Jan 2004 23:30:20 -0000 1.28 +++ Field.java 17 Jan 2004 17:35:27 -0000 1.29 @@ -731,7 +731,7 @@ try { field = (Field) super.clone(); } catch(CloneNotSupportedException e) { - throw new InternalError(e.toString()); + throw new RuntimeException(e.toString()); } field.args = new Map[this.args.length]; 1.11 +4 -4 jakarta-commons/validator/src/share/org/apache/commons/validator/Msg.java Index: Msg.java =================================================================== RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Msg.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- Msg.java 11 Jan 2004 23:30:20 -0000 1.10 +++ Msg.java 17 Jan 2004 17:35:27 -0000 1.11 @@ -141,7 +141,7 @@ return super.clone(); } catch(CloneNotSupportedException e) { - throw new InternalError(e.toString()); + throw new RuntimeException(e.toString()); } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]