tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r961313 - in /tomcat/trunk/java/org/apache/el/parser: AstDotSuffix.java AstIdentifier.java
Date Wed, 07 Jul 2010 09:10:39 GMT
Author: markt
Date: Wed Jul  7 09:10:38 2010
New Revision: 961313

URL: http://svn.apache.org/viewvc?rev=961313&view=rev
Log:
Better error message

Modified:
    tomcat/trunk/java/org/apache/el/parser/AstDotSuffix.java
    tomcat/trunk/java/org/apache/el/parser/AstIdentifier.java

Modified: tomcat/trunk/java/org/apache/el/parser/AstDotSuffix.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/parser/AstDotSuffix.java?rev=961313&r1=961312&r2=961313&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/el/parser/AstDotSuffix.java (original)
+++ tomcat/trunk/java/org/apache/el/parser/AstDotSuffix.java Wed Jul  7 09:10:38 2010
@@ -42,7 +42,8 @@ public final class AstDotSuffix extends 
     @Override
     public void setImage(String image) {
         if (!Validation.isIdentifier(image)) {
-            throw new ELException("Can't use Java keyword as identifier");
+            throw new ELException("[" + image +
+                    "] is not a valid Java identifier");
         }
         this.image = image;
     }

Modified: tomcat/trunk/java/org/apache/el/parser/AstIdentifier.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/parser/AstIdentifier.java?rev=961313&r1=961312&r2=961313&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/el/parser/AstIdentifier.java (original)
+++ tomcat/trunk/java/org/apache/el/parser/AstIdentifier.java Wed Jul  7 09:10:38 2010
@@ -129,7 +129,8 @@ public final class AstIdentifier extends
     @Override
     public void setImage(String image) {
         if (!Validation.isIdentifier(image)) {
-            throw new ELException("Can't use Java keyword as identifier");
+            throw new ELException("[" + image +
+                    "] is not a valid Java identifier");
         }
         this.image = image;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message