Merge
authorlana
Fri, 31 Aug 2012 12:11:03 -0700
changeset 13609 72a3850a4c5e
parent 13607 665f736c1913 (current diff)
parent 13608 a2effa5fb0c3 (diff)
child 13616 4efc4ab93edd
child 13674 c1b9cf3dd7be
Merge
--- a/jdk/src/share/classes/com/sun/beans/decoder/MethodElementHandler.java	Thu Aug 30 20:16:07 2012 -0700
+++ b/jdk/src/share/classes/com/sun/beans/decoder/MethodElementHandler.java	Fri Aug 31 12:11:03 2012 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -28,6 +28,8 @@
 
 import java.lang.reflect.Method;
 
+import sun.reflect.misc.MethodUtil;
+
 /**
  * This class is intended to handle <method> element.
  * It describes invocation of the method.
@@ -101,7 +103,7 @@
         if (method.isVarArgs()) {
             args = getArguments(args, method.getParameterTypes());
         }
-        Object value = method.invoke(bean, args);
+        Object value = MethodUtil.invoke(method, bean, args);
         return method.getReturnType().equals(void.class)
                 ? ValueObjectImpl.VOID
                 : ValueObjectImpl.create(value);