Fri, 24 Sep 2010 22:42:14 -0700
6891766: Vulnerabilities in use of reflection in CORBA
Reviewed-by: hawtin
1 /*
2 * Copyright (c) 1997, 2001, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 /*
26 * File: ./org/omg/CORBA/StructMember.java
27 * From: ./ir.idl
28 * Date: Fri Aug 28 16:03:31 1998
29 * By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
30 */
32 package org.omg.CORBA;
34 /**
35 * Describes a member of an IDL <code>struct</code> in the
36 * Interface Repository, including
37 * the name of the <code>struct</code> member, the type of
38 * the <code>struct</code> member, and
39 * the typedef that represents the IDL type of the
40 * <code>struct</code> member
41 * described the <code>struct</code> member object.
42 */
43 public final class StructMember implements org.omg.CORBA.portable.IDLEntity {
45 // instance variables
47 /**
48 * The name of the struct member described by
49 * this <code>StructMember</code> object.
50 * @serial
51 */
52 public String name;
54 /**
55 * The type of the struct member described by
56 * this <code>StructMember</code> object.
57 * @serial
58 */
59 public org.omg.CORBA.TypeCode type;
61 /**
62 * The typedef that represents the IDL type of the struct member described by
63 * this <code>StructMember</code> object.
64 * @serial
65 */
66 public org.omg.CORBA.IDLType type_def;
67 // constructors
69 /**
70 * Constructs a default <code>StructMember</code> object.
71 */
72 public StructMember() { }
74 /**
75 * Constructs a <code>StructMember</code> object initialized with the
76 * given values.
77 * @param __name a <code>String</code> object with the name of the struct
78 * member
79 * @param __type a <code>TypeCode</code> object describing the type of the struct
80 * member
81 * @param __type_def an <code>IDLType</code> object representing the IDL type
82 * of the struct member
83 */
84 public StructMember(String __name, org.omg.CORBA.TypeCode __type, org.omg.CORBA.IDLType __type_def) {
85 name = __name;
86 type = __type;
87 type_def = __type_def;
88 }
89 }