JDK-8020508.js revision 440:ede320e13c82
1116743Ssam/*
2116743Ssam * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
3116743Ssam * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4116743Ssam *
5116743Ssam * This code is free software; you can redistribute it and/or modify it
6116743Ssam * under the terms of the GNU General Public License version 2 only, as
7116743Ssam * published by the Free Software Foundation.
8116743Ssam *
9116743Ssam * This code is distributed in the hope that it will be useful, but WITHOUT
10116743Ssam * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11116743Ssam * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12116743Ssam * version 2 for more details (a copy is included in the LICENSE file that
13116743Ssam * accompanied this code).
14116743Ssam *
15116743Ssam * You should have received a copy of the GNU General Public License version
16116743Ssam * 2 along with this work; if not, write to the Free Software Foundation,
17116743Ssam * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18116743Ssam *
19116743Ssam * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20116743Ssam * or visit www.oracle.com if you need additional information or have any
21116743Ssam * questions.
22116743Ssam */
23116743Ssam
24116743Ssam/**
25116743Ssam * JDK-8020508: Enforce reflection check on
26116743Ssam * Object.bindProperties(target, source) for beans
27116743Ssam *
28116743Ssam * @test
29116743Ssam * @run
30116743Ssam */
31116743Ssam
32116743Ssamvar x = {}
33116743Ssamtry {
34116743Ssam  Object.bindProperties(x, java.util.Vector.class)
35116743Ssam} catch(e) {
36116743Ssam  print(e)
37116743Ssam}
38116743Ssam