Updated Branches: refs/heads/master a36a0833a -> 8b46b50f8
WICKET-4622 Optimize PageExpiredException to not load its stacktrace Optimize StalePageException as we did with PageExpiredException Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/8b46b50f Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/8b46b50f Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/8b46b50f Branch: refs/heads/master Commit: 8b46b50f824cf0f6469143a29cb246b15d06bd54 Parents: a36a083 Author: Martin Tzvetanov Grigorov <mgrigo...@apache.org> Authored: Tue Jul 10 18:23:04 2012 +0300 Committer: Martin Tzvetanov Grigorov <mgrigo...@apache.org> Committed: Tue Jul 10 18:23:04 2012 +0300 ---------------------------------------------------------------------- .../core/request/mapper/StalePageException.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/8b46b50f/wicket-core/src/main/java/org/apache/wicket/core/request/mapper/StalePageException.java ---------------------------------------------------------------------- diff --git a/wicket-core/src/main/java/org/apache/wicket/core/request/mapper/StalePageException.java b/wicket-core/src/main/java/org/apache/wicket/core/request/mapper/StalePageException.java index 1ef98d6..b70b013 100644 --- a/wicket-core/src/main/java/org/apache/wicket/core/request/mapper/StalePageException.java +++ b/wicket-core/src/main/java/org/apache/wicket/core/request/mapper/StalePageException.java @@ -50,4 +50,16 @@ public class StalePageException extends WicketRuntimeException { return page; } + + /** + * Suppress loading of the stacktrace because it is not needed. + * + * @see java.lang.Throwable#fillInStackTrace() + */ + @Override + public Throwable fillInStackTrace() + { + // don't do anything here + return null; + } }