natClass.cc (getSignature): Don't try to dereference param_types if it is null.
* java/lang/natClass.cc (getSignature): Don't try to dereference param_types if it is null. Instead, take this to mean "no parameters". * java/lang/TreeMap.java (TreeIterator.next): Throw NoSuchElementException in preference to ConcurrentModificationException. (TreeIterator.remove): Throw IllegalStateException in preference to ConcurrentModificationException. (SubMap.firstKey): Do a better check for empty SubMap, and if it is, throw a NoSuchElementException. (SubMap.lastKey): Likewise. From-SVN: r39658
This commit is contained in:
committed by
Bryce McKinlay
parent
a142a99626
commit
97a4d32ec6
@@ -290,8 +290,12 @@ java::lang::Class::getSignature (JArray<jclass> *param_types,
|
||||
java::lang::StringBuffer *buf = new java::lang::StringBuffer ();
|
||||
buf->append((jchar) '(');
|
||||
jclass *v = elements (param_types);
|
||||
for (int i = 0; i < param_types->length; ++i)
|
||||
v[i]->getSignature(buf);
|
||||
// A NULL param_types means "no parameters".
|
||||
if (param_types != NULL)
|
||||
{
|
||||
for (int i = 0; i < param_types->length; ++i)
|
||||
v[i]->getSignature(buf);
|
||||
}
|
||||
buf->append((jchar) ')');
|
||||
if (is_constructor)
|
||||
buf->append((jchar) 'V');
|
||||
|
||||
Reference in New Issue
Block a user