6125N/A/*
6125N/A * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
6125N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6125N/A *
6125N/A * This code is free software; you can redistribute it and/or modify it
6125N/A * under the terms of the GNU General Public License version 2 only, as
6125N/A * published by the Free Software Foundation.
6125N/A *
6125N/A * This code is distributed in the hope that it will be useful, but WITHOUT
6125N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
6125N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
6125N/A * version 2 for more details (a copy is included in the LICENSE file that
6125N/A * accompanied this code).
6125N/A *
6125N/A * You should have received a copy of the GNU General Public License version
6125N/A * 2 along with this work; if not, write to the Free Software Foundation,
6125N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
6125N/A *
6125N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
6125N/A * or visit www.oracle.com if you need additional information or have any
6125N/A * questions.
6125N/A */
6125N/A
6125N/A/*
6125N/A * @test
6125N/A * @bug 6989223
6125N/A * @summary Tests Rectangle2D.Double encoding
6125N/A * @author Sergey Malenkov
6125N/A */
6125N/A
6125N/Aimport java.awt.geom.Rectangle2D;
6125N/A
6125N/Apublic class Test6989223 extends AbstractTest {
6125N/A public static void main(String[] args) {
6125N/A new Test6989223().test(true);
6125N/A }
6125N/A
6125N/A protected Object getObject() {
6125N/A return new Bean(1, 2, 3, 4);
6125N/A }
6125N/A
6125N/A @Override
6125N/A protected Object getAnotherObject() {
6125N/A return new Bean(1, 2, 3, 5);
6125N/A }
6125N/A
6125N/A public static class Bean extends Rectangle2D.Double {
6125N/A public Bean() {
6125N/A }
6125N/A
6125N/A public Bean(double x, double y, double w, double h) {
6125N/A super(x, y, w, h);
6125N/A }
6125N/A
6125N/A @Override
6125N/A public boolean equals(Object object) {
6125N/A return super.equals(object); // to avoid recursion during validation
6125N/A }
6125N/A }
6125N/A}