natClass.cc (getClassLoader): Circumvent infinite recursion when searching for the system ClassLoader.
2004-03-21 Anthony Green <green@redhat.com> * java/lang/natClass.cc (getClassLoader): Circumvent infinite recursion when searching for the system ClassLoader. From-SVN: r79871
This commit is contained in:
parent
b1500d001a
commit
95e59f1ada
2 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
// natClass.cc - Implementation of java.lang.Class native methods.
|
||||
|
||||
/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation
|
||||
/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004
|
||||
Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
|
@ -151,7 +152,7 @@ java::lang::Class::getClassLoader (void)
|
|||
// `null' instead.
|
||||
if (isPrimitive ())
|
||||
return NULL;
|
||||
return loader ? loader : ClassLoader::getSystemClassLoader ();
|
||||
return loader ? loader : ClassLoader::systemClassLoader;
|
||||
}
|
||||
|
||||
java::lang::reflect::Constructor *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue