1.1 --- a/src/share/jaxws_classes/com/sun/xml/internal/ws/policy/privateutil/PolicyUtils.java Thu Jul 25 03:19:02 2013 -0700 1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/policy/privateutil/PolicyUtils.java Thu Aug 01 16:09:17 2013 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -282,13 +282,13 @@ 1.11 /** 1.12 * Reflection utilities wrapper 1.13 */ 1.14 - public static class Reflection { 1.15 + static class Reflection { 1.16 private static final PolicyLogger LOGGER = PolicyLogger.getLogger(PolicyUtils.Reflection.class); 1.17 1.18 /** 1.19 * Reflectively invokes specified method on the specified target 1.20 */ 1.21 - public static <T> T invoke(final Object target, final String methodName, 1.22 + static <T> T invoke(final Object target, final String methodName, 1.23 final Class<T> resultClass, final Object... parameters) throws RuntimePolicyUtilsException { 1.24 Class[] parameterTypes; 1.25 if (parameters != null && parameters.length > 0) { 1.26 @@ -311,7 +311,7 @@ 1.27 final Object[] parameters, final Class[] parameterTypes) throws RuntimePolicyUtilsException { 1.28 try { 1.29 final Method method = target.getClass().getMethod(methodName, parameterTypes); 1.30 - final Object result = method.invoke(target, parameters); 1.31 + final Object result = MethodUtil.invoke(target, method,parameters); 1.32 1.33 return resultClass.cast(result); 1.34 } catch (IllegalArgumentException e) {