changeset 5258:83163c4895e3

7194567: Improve long term persistence of java.beans objects Reviewed-by: ahgross, art
author malenkov
date Tue, 28 Aug 2012 12:00:26 -0700
parents 82f02d1af0b9
children 78e01a6ca8d3
files src/share/classes/com/sun/beans/decoder/MethodElementHandler.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/beans/decoder/MethodElementHandler.java	Wed Jul 25 19:59:07 2012 +0400
+++ b/src/share/classes/com/sun/beans/decoder/MethodElementHandler.java	Tue Aug 28 12:00:26 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);