Implemented proper enum toString() behavior and an enum test. it should

work, but it fails with the current build.
This commit is contained in:
Eric Scharff
2007-09-26 12:59:18 -06:00
parent c7567b4081
commit a88f7c8473
3 changed files with 44 additions and 1 deletions

View File

@ -2,7 +2,7 @@ package java.lang;
public class Object {
protected Object clone() throws CloneNotSupportedException {
if (this instanceof Cloneable) {
if ((this instanceof Cloneable) || getClass().isArray()) {
return clone(this);
} else {
throw new CloneNotSupportedException(getClass().getName());