natConstructor.cc (newInstance): Initialize class.
* java/lang/reflect/natConstructor.cc (newInstance): Initialize class. * java/lang/reflect/natMethod.cc (invoke): Initialize class. From-SVN: r56624
This commit is contained in:
parent
7ee425e4d4
commit
f87999337a
3 changed files with 16 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
// natConstructor.cc - Native code for Constructor class.
|
||||
|
||||
/* Copyright (C) 1999, 2000, 2001 Free Software Foundation
|
||||
/* Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
|
@ -50,6 +50,8 @@ java::lang::reflect::Constructor::newInstance (jobjectArray args)
|
|||
if (Modifier::isAbstract (declaringClass->getModifiers()))
|
||||
throw new InstantiationException;
|
||||
|
||||
_Jv_InitClass (declaringClass);
|
||||
|
||||
jmethodID meth = _Jv_FromReflectedConstructor (this);
|
||||
// In the constructor case the return type is the type of the
|
||||
// constructor.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue