src/share/classes/com/sun/corba/se/impl/io/ValueUtility.java

changeset 475
39d15bbb5741
parent 443
3c73273667ae
child 748
6845b95cba6b
equal deleted inserted replaced
458:44a8ce4a759f 475:39d15bbb5741
1 /* 1 /*
2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 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 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
96 static { 96 static {
97 sun.corba.SharedSecrets.setJavaCorbaAccess(new sun.corba.JavaCorbaAccess() { 97 sun.corba.SharedSecrets.setJavaCorbaAccess(new sun.corba.JavaCorbaAccess() {
98 public ValueHandlerImpl newValueHandlerImpl() { 98 public ValueHandlerImpl newValueHandlerImpl() {
99 return ValueHandlerImpl.getInstance(); 99 return ValueHandlerImpl.getInstance();
100 } 100 }
101 public Class<?> loadClass(String className) throws ClassNotFoundException {
102 if (Thread.currentThread().getContextClassLoader() != null) {
103 return Thread.currentThread().getContextClassLoader().
104 loadClass(className);
105 } else {
106 return ClassLoader.getSystemClassLoader().loadClass(className);
107 }
108 }
101 }); 109 });
102 } 110 }
103 111
104 public static String getSignature(ValueMember member) 112 public static String getSignature(ValueMember member)
105 throws ClassNotFoundException { 113 throws ClassNotFoundException {

mercurial