< prev index next >

src/jdk.rmic/share/classes/sun/rmi/rmic/RMIGenerator.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 44,54 **** import sun.tools.java.ClassDefinition; import sun.tools.java.ClassDeclaration; import sun.tools.java.ClassNotFound; import sun.tools.java.ClassFile; import sun.tools.java.MemberDefinition; - import com.sun.corba.se.impl.util.Utility; /** * A Generator object will generate the Java source code of the stub * and skeleton classes for an RMI remote implementation class, using * a particular stub protocol version. --- 44,53 ----
*** 194,225 **** BatchEnvironment env) { File packageDir = Util.getOutputDirectoryFor(className,destDir,env); String outputName = Names.mangleClass(outputClassName).getName().toString(); - // Is there any existing _Tie equivalent leftover from a - // previous invocation of rmic -iiop? Only do this once per - // class by looking for skeleton generation... - - if (outputName.endsWith("_Skel")) { - String classNameStr = className.getName().toString(); - File temp = new File(packageDir, Utility.tieName(classNameStr) + ".class"); - if (temp.exists()) { - - // Found a tie. Is IIOP generation also being done? - - if (!env.getMain().iiopGeneration) { - - // No, so write a warning... - - env.error(0,"warn.rmic.tie.found", - classNameStr, - temp.getAbsolutePath()); - } - } - } - String outputFileName = outputName + ".java"; return new File(packageDir, outputFileName); } --- 193,202 ----
< prev index next >