mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
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:
committed by
Anthony Green
parent
b1500d001a
commit
95e59f1ada
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user