You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by dr...@apache.org on 2010/03/05 23:14:06 UTC

svn commit: r919643 - in /tapestry/tapestry5/trunk/tapestry-ioc/src: main/resources/org/apache/tapestry5/ioc/internal/util/UtilStrings.properties test/java/org/apache/tapestry5/ioc/internal/util/InternalUtilsTest.java

Author: drobiazko
Date: Fri Mar  5 22:14:06 2010
New Revision: 919643

URL: http://svn.apache.org/viewvc?rev=919643&view=rev
Log:
TAP5-1014: Message about missing or wrong retention policy of a marker annotation is misleading

Modified:
    tapestry/tapestry5/trunk/tapestry-ioc/src/main/resources/org/apache/tapestry5/ioc/internal/util/UtilStrings.properties
    tapestry/tapestry5/trunk/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/util/InternalUtilsTest.java

Modified: tapestry/tapestry5/trunk/tapestry-ioc/src/main/resources/org/apache/tapestry5/ioc/internal/util/UtilStrings.properties
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-ioc/src/main/resources/org/apache/tapestry5/ioc/internal/util/UtilStrings.properties?rev=919643&r1=919642&r2=919643&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-ioc/src/main/resources/org/apache/tapestry5/ioc/internal/util/UtilStrings.properties (original)
+++ tapestry/tapestry5/trunk/tapestry-ioc/src/main/resources/org/apache/tapestry5/ioc/internal/util/UtilStrings.properties Fri Mar  5 22:14:06 2010
@@ -19,5 +19,5 @@
 parameter-was-null=Parameter %s was null.
 parameter-was-blank=Parameter %s was null or contained only whitespace.
 bad-cast=Parameter %s (%s) is not assignable to type %s.
-bad-marker-annotation=Marker annotation class %s is not valid because it is not visible at runtime. Add a @RetentionPolicy(RUNTIME) to the class.
+bad-marker-annotation=Marker annotation class %s is not valid because it is not visible at runtime. Add a @Retention(RetentionPolicy.RUNTIME) to the class.
 inject-resource-failure=Unable to determine resource value to inject into field '%s' (of type %s).

Modified: tapestry/tapestry5/trunk/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/util/InternalUtilsTest.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/util/InternalUtilsTest.java?rev=919643&r1=919642&r2=919643&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/util/InternalUtilsTest.java (original)
+++ tapestry/tapestry5/trunk/tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/internal/util/InternalUtilsTest.java Fri Mar  5 22:14:06 2010
@@ -377,7 +377,7 @@
         {
             assertEquals(
                     ex.getMessage(),
-                    "Marker annotation class org.apache.tapestry5.ioc.internal.util.NotRetainedRuntime is not valid because it is not visible at runtime. Add a @RetentionPolicy(RUNTIME) to the class.");
+                    "Marker annotation class org.apache.tapestry5.ioc.internal.util.NotRetainedRuntime is not valid because it is not visible at runtime. Add a @Retention(RetentionPolicy.RUNTIME) to the class.");
         }
     }