diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-10 22:56:20 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-10 22:56:20 +0000 |
commit | 151cc94746d393a448a13ea0d5efe8a87adda773 (patch) | |
tree | af5c069de201968b312e04750e16cf0b401bc594 /libjava/link.cc | |
parent | 8954523869fe72beb7f72643ddf3168c256eb9af (diff) | |
download | gcc-151cc94746d393a448a13ea0d5efe8a87adda773.tar.gz |
* java/lang/natDouble.cc (toString): Added parens.
* gnu/gcj/io/shs.h (PROTO): Define.
* link.cc (resolve_pool_entry): Added missing braces.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120652 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/link.cc')
-rw-r--r-- | libjava/link.cc | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/libjava/link.cc b/libjava/link.cc index 929be3a8702..7f398889a29 100644 --- a/libjava/link.cc +++ b/libjava/link.cc @@ -1,6 +1,6 @@ // link.cc - Code for linking and resolving classes and pool entries. -/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation +/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation This file is part of libgcj. @@ -408,16 +408,18 @@ _Jv_Linker::resolve_pool_entry (jclass klass, int index, bool lazy) // with it should just throw a NoClassDefFoundError with the class' // name. if (! found) - if (lazy) - { - found = _Jv_NewClass(name, NULL, NULL); - found->state = JV_STATE_PHANTOM; - pool->tags[index] |= JV_CONSTANT_ResolvedFlag; - pool->data[index].clazz = found; - break; - } - else - throw new java::lang::NoClassDefFoundError (name->toString()); + { + if (lazy) + { + found = _Jv_NewClass(name, NULL, NULL); + found->state = JV_STATE_PHANTOM; + pool->tags[index] |= JV_CONSTANT_ResolvedFlag; + pool->data[index].clazz = found; + break; + } + else + throw new java::lang::NoClassDefFoundError (name->toString()); + } // Check accessibility, but first strip array types as // _Jv_ClassNameSamePackage can't handle arrays. |