提交 b90a0f24 编写于 作者: M mbankal

Merge

/* /*
* Copyright (c) 1998, 2007, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -425,7 +425,7 @@ public class StubGenerator extends sun.rmi.rmic.iiop.Generator { ...@@ -425,7 +425,7 @@ public class StubGenerator extends sun.rmi.rmic.iiop.Generator {
// Write the _ids() method... // Write the _ids() method...
p.plnI("public String[] _ids() { "); p.plnI("public String[] _ids() { ");
p.pln("return _type_ids;"); p.pln("return (String[]) _type_ids.clone();");
p.pOln("}"); p.pOln("}");
// Get all the methods and write each stub method... // Get all the methods and write each stub method...
...@@ -1860,11 +1860,11 @@ public class StubGenerator extends sun.rmi.rmic.iiop.Generator { ...@@ -1860,11 +1860,11 @@ public class StubGenerator extends sun.rmi.rmic.iiop.Generator {
{ {
if(POATie){ if(POATie){
p.plnI("public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] objectId){"); p.plnI("public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] objectId){");
p.pln("return _type_ids;"); p.pln("return (String[]) _type_ids.clone();");
p.pOln("}"); p.pOln("}");
} else { } else {
p.plnI("public String[] _ids() { "); p.plnI("public String[] _ids() { ");
p.pln("return _type_ids;"); p.pln("return (String[]) _type_ids.clone();");
p.pOln("}"); p.pOln("}");
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册