changeset 14151:5f03f3570be7

8154121: Remove test mistakenly added during a merge Reviewed-by: amurillo
author dcubed
date Tue, 12 Apr 2016 21:05:15 -0700
parents afc3c537ff15
children c11d4a8cc37e 68d1533a2218
files test/java/text/Format/DateFormat/DFSConstructorCloneTest.java
diffstat 1 files changed, 0 insertions(+), 70 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/text/Format/DateFormat/DFSConstructorCloneTest.java	Mon Apr 11 14:21:27 2016 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,70 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-
-/*
- * @test
- * @bug 8087104
- * @summary Make sure that clone() method is not called from DateFormatSymbols constructor.
- */
-import java.text.DateFormatSymbols;
-
-public class DFSymbolsCloneTest extends DateFormatSymbols {
-
-    private Foo foo;
-
-    public DFSymbolsCloneTest(Foo fooObj) {
-        if (fooObj == null) {
-            this.foo = new Foo();
-        } else {
-            this.foo = fooObj;
-        }
-    }
-
-    @Override
-    public Object clone() {
-        DFSymbolsCloneTest dfsclone = (DFSymbolsCloneTest) super.clone();
-        if (this.foo == null) {
-            throw new RuntimeException("Clone method should not be called from "
-                    + " Superclass(DateFormatSymbols) Constructor...");
-        } else {
-            dfsclone.foo = (Foo) this.foo.clone();
-        }
-        return dfsclone;
-    }
-
-    public static void main(String[] args) {
-        DFSymbolsCloneTest dfsctest = new DFSymbolsCloneTest(new Foo());
-    }
-}
-
-class Foo {
-
-    public Foo() {
-    }
-
-    @Override
-    protected Object clone() {
-        return new Foo();
-    }
-
-}