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:30:06 UTC
svn commit: r1449028 -
/myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java
Author: lofwyr
Date: Fri Feb 22 13:30:05 2013
New Revision: 1449028
URL: http://svn.apache.org/r1449028
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.0.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java
Modified: myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java?rev=1449028&r1=1449027&r2=1449028&view=diff
==============================================================================
--- myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java (original)
+++ myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TagLibraryConfig.java Fri Feb 22 13:30:05 2013
@@ -600,10 +600,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)