/[classpath]/classpath/gnu/java/rmi/server/UnicastServerRef.java
ViewVC logotype

Diff of /classpath/gnu/java/rmi/server/UnicastServerRef.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by rupp, Thu Jul 3 09:47:11 2003 UTC revision 1.7 by mark, Sun Jul 13 23:19:58 2003 UTC
# Line 138  public boolean unexportObject(Remote obj Line 138  public boolean unexportObject(Remote obj
138  private Object getHelperClass(Class cls, String type) {  private Object getHelperClass(Class cls, String type) {
139          try {            try {  
140              String classname = cls.getName();              String classname = cls.getName();
141                  ClassLoader cl = cls.getClassLoader(); //DONT use "Class scls = Class.forName(classname + type);"                  ClassLoader cl = cls.getClassLoader();
142                  Class scls = cl.loadClass(classname + type);                  Class scls = cl == null ? Class.forName(classname + type)
143                                            : cl.loadClass(classname + type);
144                  if (type.equals("_Stub")) {                  if (type.equals("_Stub")) {
145                          try {                          try {
146                                  // JDK 1.2 stubs                                  // JDK 1.2 stubs

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26