* java/lang/natClass.cc (getClasses): Wrote.

From-SVN: r31276
This commit is contained in:
Tom Tromey 2000-01-07 20:23:01 +00:00 committed by Tom Tromey
parent c71791e01e
commit bd3a924b10
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2000-01-07 Tom Tromey <tromey@cygnus.com>
* java/lang/natClass.cc (getClasses): Wrote.
2000-01-06 Tom Tromey <tromey@cygnus.com>
* java/lang/natClass.cc (_getConstructors): Correctly check

View File

@ -367,8 +367,11 @@ java::lang::Class::getName (void)
JArray<jclass> *
java::lang::Class::getClasses (void)
{
// FIXME: implement.
return NULL;
// Until we have inner classes, it always makes sense to return an
// empty array.
JArray<jclass> *result
= (JArray<jclass> *) JvNewObjectArray (0, &ClassClass, NULL);
return result;
}
JArray<jclass> *