Sun, 05 Dec 2010 22:22:54 -0800
7004713: regression: cannot find symbol: variable delegate failed compile _Stub
Summary: Also reviewed by ken.cavanaugh@oracle.com
Reviewed-by: asaha
duke@1 | 1 | /* |
ohair@158 | 2 | * Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved. |
duke@1 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@1 | 4 | * |
duke@1 | 5 | * This code is free software; you can redistribute it and/or modify it |
duke@1 | 6 | * under the terms of the GNU General Public License version 2 only, as |
ohair@158 | 7 | * published by the Free Software Foundation. Oracle designates this |
duke@1 | 8 | * particular file as subject to the "Classpath" exception as provided |
ohair@158 | 9 | * by Oracle in the LICENSE file that accompanied this code. |
duke@1 | 10 | * |
duke@1 | 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
duke@1 | 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@1 | 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@1 | 14 | * version 2 for more details (a copy is included in the LICENSE file that |
duke@1 | 15 | * accompanied this code). |
duke@1 | 16 | * |
duke@1 | 17 | * You should have received a copy of the GNU General Public License version |
duke@1 | 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
duke@1 | 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@1 | 20 | * |
ohair@158 | 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@158 | 22 | * or visit www.oracle.com if you need additional information or have any |
ohair@158 | 23 | * questions. |
duke@1 | 24 | */ |
duke@1 | 25 | /* |
duke@1 | 26 | * COMPONENT_NAME: idl.toJava |
duke@1 | 27 | * |
duke@1 | 28 | * ORIGINS: 27 |
duke@1 | 29 | * |
duke@1 | 30 | * Licensed Materials - Property of IBM |
duke@1 | 31 | * 5639-D57 (C) COPYRIGHT International Business Machines Corp. 1997, 1999 |
duke@1 | 32 | * RMI-IIOP v1.0 |
duke@1 | 33 | * |
duke@1 | 34 | */ |
duke@1 | 35 | |
duke@1 | 36 | package com.sun.tools.corba.se.idl.toJavaPortable; |
duke@1 | 37 | |
duke@1 | 38 | // NOTES: |
duke@1 | 39 | // -D62023 <klr> New file to implement CORBA 2.4 RTF |
duke@1 | 40 | // NOTE: The methods in this class should be exact copies of the |
duke@1 | 41 | // correspoind methods in MethodGen24. The purpose of this class is |
duke@1 | 42 | // to inject the changes made in MethodGen24 between AttributeGen |
duke@1 | 43 | // and AttributeGen24. When the AttributeGen24 changes are merged, this |
duke@1 | 44 | // class should be deleted. |
duke@1 | 45 | |
duke@1 | 46 | import java.io.PrintWriter; |
duke@1 | 47 | |
duke@1 | 48 | import java.util.Enumeration; |
duke@1 | 49 | import java.util.Vector; |
duke@1 | 50 | import java.util.Hashtable; |
duke@1 | 51 | |
duke@1 | 52 | import com.sun.tools.corba.se.idl.GenFileStream; |
duke@1 | 53 | import com.sun.tools.corba.se.idl.InterfaceEntry; |
duke@1 | 54 | import com.sun.tools.corba.se.idl.MethodEntry; |
duke@1 | 55 | import com.sun.tools.corba.se.idl.ParameterEntry; |
duke@1 | 56 | import com.sun.tools.corba.se.idl.SymtabEntry; |
duke@1 | 57 | import com.sun.tools.corba.se.idl.ValueEntry; |
duke@1 | 58 | import com.sun.tools.corba.se.idl.ValueBoxEntry; |
duke@1 | 59 | import com.sun.tools.corba.se.idl.TypedefEntry; |
duke@1 | 60 | import com.sun.tools.corba.se.idl.InterfaceState; |
duke@1 | 61 | import com.sun.tools.corba.se.idl.PrimitiveEntry; |
duke@1 | 62 | import com.sun.tools.corba.se.idl.StructEntry; |
duke@1 | 63 | |
duke@1 | 64 | /** |
duke@1 | 65 | * |
duke@1 | 66 | **/ |
duke@1 | 67 | public class MethodGenClone24 extends AttributeGen |
duke@1 | 68 | { |
duke@1 | 69 | /** |
duke@1 | 70 | * Public zero-argument constructor. |
duke@1 | 71 | **/ |
duke@1 | 72 | public MethodGenClone24 () |
duke@1 | 73 | { |
duke@1 | 74 | } // ctor |
duke@1 | 75 | |
duke@1 | 76 | /** |
duke@1 | 77 | * <d62023> - write an abstract method definition |
duke@1 | 78 | **/ |
duke@1 | 79 | protected void abstractMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream) |
duke@1 | 80 | { |
duke@1 | 81 | this.symbolTable = symbolTable; |
duke@1 | 82 | this.m = m; |
duke@1 | 83 | this.stream = stream; |
duke@1 | 84 | if (m.comment () != null) |
duke@1 | 85 | m.comment ().generate (" ", stream); |
duke@1 | 86 | stream.print (" "); |
duke@1 | 87 | stream.print ("public abstract "); |
duke@1 | 88 | writeMethodSignature (); |
duke@1 | 89 | stream.println (";"); |
duke@1 | 90 | stream.println (); |
duke@1 | 91 | } // abstractMethod |
duke@1 | 92 | |
duke@1 | 93 | /** |
duke@1 | 94 | * <d62023> - delete method templates for valuetypes |
duke@1 | 95 | **/ |
duke@1 | 96 | protected void interfaceMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream) |
duke@1 | 97 | { |
duke@1 | 98 | this.symbolTable = symbolTable; |
duke@1 | 99 | this.m = m; |
duke@1 | 100 | this.stream = stream; |
duke@1 | 101 | if (m.comment () != null) |
duke@1 | 102 | m.comment ().generate (" ", stream); |
duke@1 | 103 | stream.print (" "); |
duke@1 | 104 | writeMethodSignature (); |
duke@1 | 105 | stream.println (";"); |
duke@1 | 106 | } // interfaceMethod |
duke@1 | 107 | } |