maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r810194 - /maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-expression/src/main/java/org/apache/maven/plugin/coreit/ExpressionUtil.java
Date Tue, 01 Sep 2009 19:46:20 GMT
Author: bentmann
Date: Tue Sep  1 19:46:20 2009
New Revision: 810194

URL: http://svn.apache.org/viewvc?rev=810194&view=rev
Log:
o Enabled access to non-public methods

Modified:
    maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-expression/src/main/java/org/apache/maven/plugin/coreit/ExpressionUtil.java

Modified: maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-expression/src/main/java/org/apache/maven/plugin/coreit/ExpressionUtil.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-expression/src/main/java/org/apache/maven/plugin/coreit/ExpressionUtil.java?rev=810194&r1=810193&r2=810194&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-expression/src/main/java/org/apache/maven/plugin/coreit/ExpressionUtil.java
(original)
+++ maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-expression/src/main/java/org/apache/maven/plugin/coreit/ExpressionUtil.java
Tue Sep  1 19:46:20 2009
@@ -161,6 +161,7 @@
             try
             {
                 Method method = type.getMethod( property, NO_PARAMS );
+                method.setAccessible( true );
                 value = method.invoke( context, NO_ARGS );
             }
             catch ( NoSuchMethodException e )
@@ -169,6 +170,7 @@
                 {
                     String name = "get" + Character.toUpperCase( property.charAt( 0 ) ) +
property.substring( 1 );
                     Method method = type.getMethod( name, NO_PARAMS );
+                    method.setAccessible( true );
                     value = method.invoke( context, NO_ARGS );
                 }
                 catch ( NoSuchMethodException e1 )
@@ -177,6 +179,7 @@
                     {
                         String name = "is" + Character.toUpperCase( property.charAt( 0 )
) + property.substring( 1 );
                         Method method = type.getMethod( name, NO_PARAMS );
+                        method.setAccessible( true );
                         value = method.invoke( context, NO_ARGS );
                     }
                     catch ( NoSuchMethodException e2 )
@@ -192,6 +195,7 @@
                             {
                                 method = type.getMethod( "get", OBJECT_PARAM );
                             }
+                            method.setAccessible( true );
                             value = method.invoke( context, new Object[] { property } );
                         }
                         catch ( NoSuchMethodException e3 )
@@ -199,6 +203,7 @@
                             try
                             {
                                 Field field = type.getField( property );
+                                field.setAccessible( true );
                                 value = field.get( context );
                             }
                             catch ( NoSuchFieldException e4 )



Mime
View raw message