You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2013/02/22 14:39:23 UTC

svn commit: r1449036 - /myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java

Author: lofwyr
Date: Fri Feb 22 13:39:23 2013
New Revision: 1449036

URL: http://svn.apache.org/r1449036
Log:
MYFACES-3697: Error while parsing Facelet-Lib hides the real reason when logging
 - using the constructor to set the cause

Modified:
    myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java

Modified: myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java?rev=1449036&r1=1449035&r2=1449036&view=diff
==============================================================================
--- myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java (original)
+++ myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java Fri Feb 22 13:39:23 2013
@@ -740,10 +740,8 @@ public final class TagLibraryConfig
 
         public void error(SAXParseException e) throws SAXException
         {
-            SAXException saxe = new SAXException("Error Handling [" + this.source + "@" + e.getLineNumber() + ","
-                    + e.getColumnNumber() + "]");
-            saxe.initCause(e);
-            throw saxe;
+            throw new SAXException(
+                    "Error Handling [" + this.source + "@" + e.getLineNumber() + "," + e.getColumnNumber() + "]", e);
         }
 
         public void setDocumentLocator(Locator locator)