Wed, 05 Sep 2018 01:21:35 -0700
Added tag jdk8u192-b09 for changeset 456c0d45c43b
hannesw@1975 | 1 | /* |
hannesw@1975 | 2 | * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
hannesw@1975 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
hannesw@1975 | 4 | * |
hannesw@1975 | 5 | * This code is free software; you can redistribute it and/or modify it |
hannesw@1975 | 6 | * under the terms of the GNU General Public License version 2 only, as |
hannesw@1975 | 7 | * published by the Free Software Foundation. |
hannesw@1975 | 8 | * |
hannesw@1975 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
hannesw@1975 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
hannesw@1975 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
hannesw@1975 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
hannesw@1975 | 13 | * accompanied this code). |
hannesw@1975 | 14 | * |
hannesw@1975 | 15 | * You should have received a copy of the GNU General Public License version |
hannesw@1975 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
hannesw@1975 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
hannesw@1975 | 18 | * |
hannesw@1975 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
hannesw@1975 | 20 | * or visit www.oracle.com if you need additional information or have any |
hannesw@1975 | 21 | * questions. |
hannesw@1975 | 22 | */ |
hannesw@1975 | 23 | |
hannesw@1975 | 24 | /** |
hannesw@1975 | 25 | * JDK-8166902: Nested object literal property maps not reset in optimistic recompilation |
hannesw@1975 | 26 | * |
hannesw@1975 | 27 | * @test |
hannesw@1975 | 28 | * @run |
hannesw@1975 | 29 | */ |
hannesw@1975 | 30 | |
hannesw@1975 | 31 | var o = { |
hannesw@1975 | 32 | a: "A", |
hannesw@1975 | 33 | b: "B" |
hannesw@1975 | 34 | }; |
hannesw@1975 | 35 | |
hannesw@1975 | 36 | var m = { |
hannesw@1975 | 37 | x: { z: o.a }, |
hannesw@1975 | 38 | y: o.b |
hannesw@1975 | 39 | }; |
hannesw@1975 | 40 | |
hannesw@1975 | 41 | Assert.assertEquals(m.x.z, "A"); |
hannesw@1975 | 42 | Assert.assertEquals(m.y, "B"); |
hannesw@1975 | 43 |