Respect the object type the user specified (i.e., never automatically

convert the result of "new Java()" to a primitive type)
This commit is contained in:
Sam Ruby 2000-07-22 13:43:46 +00:00
parent 313ca6b5e8
commit 3e4a4f2376
2 changed files with 2 additions and 2 deletions

View file

@ -136,7 +136,7 @@ public class reflect {
}
Object coercedArgs[] = coerce(selected.getParameterTypes(), args);
setResult(result, selected.newInstance(coercedArgs));
setResultFromObject(result, selected.newInstance(coercedArgs));
} catch (Exception e) {
setException(result, e);