MultipleInferenceHooksTest.java revision 2868:816bd88d33a8
1231200Smm/* 2231200Smm * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 3231200Smm * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4231200Smm * 5231200Smm * This code is free software; you can redistribute it and/or modify it 6231200Smm * under the terms of the GNU General Public License version 2 only, as 7231200Smm * published by the Free Software Foundation. 8231200Smm * 9231200Smm * This code is distributed in the hope that it will be useful, but WITHOUT 10231200Smm * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11231200Smm * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12231200Smm * version 2 for more details (a copy is included in the LICENSE file that 13231200Smm * accompanied this code). 14231200Smm * 15231200Smm * You should have received a copy of the GNU General Public License version 16231200Smm * 2 along with this work; if not, write to the Free Software Foundation, 17231200Smm * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18231200Smm * 19231200Smm * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20231200Smm * or visit www.oracle.com if you need additional information or have any 21231200Smm * questions. 22231200Smm */ 23231200Smm 24231200Smm/* 25231200Smm * @test 26231200Smm * @bug 8062373 27231200Smm * @summary Test that <>(){} works fine without verify error when there are multiple post inference hooks. 28231200Smm */ 29231200Smm 30231200Smmimport java.util.Collections; 31231200Smmimport java.util.IdentityHashMap; 32231200Smmimport java.util.Set; 33231200Smm 34231200Smmpublic class MultipleInferenceHooksTest { 35231200Smm public static void main(String[] args) { 36231200Smm Set<String> result = Collections.newSetFromMap(new IdentityHashMap<>() {}); 37232153Smm } 38232153Smm} 39232153Smm