src/share/classes/com/sun/tools/corba/se/idl/toJavaPortable/MethodGenClone24.java

Sun, 05 Dec 2010 22:22:54 -0800

author
skoppar
date
Sun, 05 Dec 2010 22:22:54 -0800
changeset 236
33ca1bceec2d
parent 158
91006f157c46
child 748
6845b95cba6b
permissions
-rw-r--r--

7004713: regression: cannot find symbol: variable delegate failed compile _Stub
Summary: Also reviewed by ken.cavanaugh@oracle.com
Reviewed-by: asaha

     1 /*
     2  * Copyright (c) 1999, 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  * COMPONENT_NAME: idl.toJava
    27  *
    28  * ORIGINS: 27
    29  *
    30  * Licensed Materials - Property of IBM
    31  * 5639-D57 (C) COPYRIGHT International Business Machines Corp. 1997, 1999
    32  * RMI-IIOP v1.0
    33  *
    34  */
    36 package com.sun.tools.corba.se.idl.toJavaPortable;
    38 // NOTES:
    39 // -D62023   <klr> New file to implement CORBA 2.4 RTF
    40 // NOTE: The methods in this class should be exact copies of the
    41 // correspoind methods in MethodGen24. The purpose of this class is
    42 // to inject the changes made in MethodGen24 between AttributeGen
    43 // and AttributeGen24. When the AttributeGen24 changes are merged, this
    44 // class should be deleted.
    46 import java.io.PrintWriter;
    48 import java.util.Enumeration;
    49 import java.util.Vector;
    50 import java.util.Hashtable;
    52 import com.sun.tools.corba.se.idl.GenFileStream;
    53 import com.sun.tools.corba.se.idl.InterfaceEntry;
    54 import com.sun.tools.corba.se.idl.MethodEntry;
    55 import com.sun.tools.corba.se.idl.ParameterEntry;
    56 import com.sun.tools.corba.se.idl.SymtabEntry;
    57 import com.sun.tools.corba.se.idl.ValueEntry;
    58 import com.sun.tools.corba.se.idl.ValueBoxEntry;
    59 import com.sun.tools.corba.se.idl.TypedefEntry;
    60 import com.sun.tools.corba.se.idl.InterfaceState;
    61 import com.sun.tools.corba.se.idl.PrimitiveEntry;
    62 import com.sun.tools.corba.se.idl.StructEntry;
    64 /**
    65  *
    66  **/
    67 public class MethodGenClone24 extends AttributeGen
    68 {
    69   /**
    70    * Public zero-argument constructor.
    71    **/
    72   public MethodGenClone24 ()
    73   {
    74   } // ctor
    76   /**
    77    * <d62023> - write an abstract method definition
    78    **/
    79   protected void abstractMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
    80   {
    81     this.symbolTable = symbolTable;
    82     this.m           = m;
    83     this.stream      = stream;
    84     if (m.comment () != null)
    85       m.comment ().generate ("  ", stream);
    86     stream.print ("  ");
    87     stream.print ("public abstract ");
    88     writeMethodSignature ();
    89     stream.println (";");
    90     stream.println ();
    91   } // abstractMethod
    93   /**
    94    * <d62023> - delete method templates for valuetypes
    95    **/
    96   protected void interfaceMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream)
    97   {
    98     this.symbolTable = symbolTable;
    99     this.m           = m;
   100     this.stream      = stream;
   101     if (m.comment () != null)
   102       m.comment ().generate ("  ", stream);
   103     stream.print ("  ");
   104     writeMethodSignature ();
   105     stream.println (";");
   106   } // interfaceMethod
   107 }

mercurial