[Nice-commit] Nice/src/bossa/syntax InlinedMethod.java,1.14,1.15
Brought to you by:
bonniot
From: <bo...@us...> - 2003-11-19 01:17:16
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1:/tmp/cvs-serv21887/src/bossa/syntax Modified Files: InlinedMethod.java Log Message: Support JVMs in which ClassLoader.getParent() returns null when the parent is the system classloader. Index: InlinedMethod.java =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/InlinedMethod.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** InlinedMethod.java 18 Oct 2003 17:20:05 -0000 1.14 --- InlinedMethod.java 19 Nov 2003 01:17:09 -0000 1.15 *************** *** 148,152 **** if (res == null) ! res = getParent().loadClass(name); if (resolve && res != null) --- 148,158 ---- if (res == null) ! { ! ClassLoader parent = getParent(); ! // A JVM may represent the system classloader by null. ! if (parent == null) ! parent = ClassLoader.getSystemClassLoader(); ! res = parent.loadClass(name); ! } if (resolve && res != null) |