OSDN Git Service

Fix an infinite loop in ClassLoader.isAncestorOf()
authorUrs Grob <ursg@google.com>
Tue, 28 Apr 2009 16:20:31 +0000 (18:20 +0200)
committerUrs Grob <ursg@google.com>
Tue, 28 Apr 2009 16:41:47 +0000 (18:41 +0200)
commit1c7ba87b216ec3de563ac4d70548313da9b9bc1b
treeb35cbe7a43cee16736a4fc6315470ea968e96172
parentf2931ca22c6307a8740f2ec61795f7cfa6971262
Fix an infinite loop in ClassLoader.isAncestorOf()

The current version loops endlessly if the callers ClassLoader
is not the same as the system ClassLoader. The cause for this is
a loop variable that is not changed during the loop.

BUG=1732214
libcore/luni-kernel/src/main/java/java/lang/ClassLoader.java