You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jl...@apache.org on 2006/11/21 07:49:20 UTC

svn commit: r477531 - in /incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor: Interceptor.java InterceptorData.java InterceptorStack.java ReflectionInvocationContext.java

Author: jlaskowski
Date: Mon Nov 20 22:49:20 2006
New Revision: 477531

URL: http://svn.apache.org/viewvc?view=rev&rev=477531
Log:
Fix for typos and svn propset svn:keywords

Modified:
    incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor/Interceptor.java   (contents, props changed)
    incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor/InterceptorData.java   (props changed)
    incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor/InterceptorStack.java   (props changed)
    incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor/ReflectionInvocationContext.java   (contents, props changed)

Modified: incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor/Interceptor.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor/Interceptor.java?view=diff&rev=477531&r1=477530&r2=477531
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor/Interceptor.java (original)
+++ incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor/Interceptor.java Mon Nov 20 22:49:20 2006
@@ -35,7 +35,7 @@
         try {
             this.method = instanceClass.getMethod(methodName, InvocationContext.class);
         } catch (NoSuchMethodException e) {
-            throw new IllegalArgumentException("Intercepor method " + methodName + " not found on insterceptor class " + instanceClass.getName());
+            throw new IllegalArgumentException("Interceptor method " + methodName + " not found on intercepted class " + instanceClass.getName());
         }
     }
 

Propchange: incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor/Interceptor.java
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author Id Revision HeadURL

Propchange: incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor/InterceptorData.java
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author Id Revision HeadURL

Propchange: incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor/InterceptorStack.java
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author Id Revision HeadURL

Modified: incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor/ReflectionInvocationContext.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor/ReflectionInvocationContext.java?view=diff&rev=477531&r1=477530&r2=477531
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor/ReflectionInvocationContext.java (original)
+++ incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor/ReflectionInvocationContext.java Mon Nov 20 22:49:20 2006
@@ -77,11 +77,11 @@
 
             if (parameter == null) {
                 if (parameterType.isPrimitive()) {
-                    throw new IllegalArgumentException("Parameter " + i + " to be primitive type " + parameterType.getName() +
-                        ", but got a parameter is null");
+                    throw new IllegalArgumentException("Expected parameter " + i + " to be primitive type " + parameterType.getName() +
+                        ", but got a parameter that is null");
                 }
             } else if (!parameterType.isInstance(parameter)) {
-                throw new IllegalArgumentException("Expect parameter " + i + " to be type " + parameterType.getName() +
+                throw new IllegalArgumentException("Expected parameter " + i + " to be of type " + parameterType.getName() +
                     ", but got a parameter of type " + parameter.getClass().getName());
             }
         }
@@ -120,10 +120,10 @@
 
     /**
      * Business method interceptors can only throw exception allowed by the target business method.
-     * Lifecycle interceptors can only throw RuntimException.
-     * @param e the invocation target excption of a reflection method invoke
+     * Lifecycle interceptors can only throw RuntimeException.
+     * @param e the invocation target exception of a reflection method invoke
      * @return the cause of the exception
-     * @throws Error if the cause is not an Exception
+     * @throws AssertionError if the cause is not an Exception or Error.
      */
     private Exception unwrapInvocationTargetException(InvocationTargetException e) {
         Throwable cause = e.getCause();

Propchange: incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/interceptor/ReflectionInvocationContext.java
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author Id Revision HeadURL