From 50873b5ace3c2d168477a756507c8d9437d2a699 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Sun, 23 Jul 2017 14:45:11 +0200 Subject: [PATCH] Unit tests: Disable a nasty HotSpot optimization that causes exception messages and traces to go missing. For more information, see http://jawspeak.com/2010/05/26/hotspot-caused-exceptions-to-lose-their-stack-traces-in-production-and-the-fix/ --- core/pom.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/pom.xml b/core/pom.xml index 18cc635b..f6cd8f23 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -320,7 +320,10 @@ org.apache.maven.plugins maven-surefire-plugin - -Xmx1024m ${surefireArgLine} + + -Xmx1024m -XX:-OmitStackTraceInFastThrow ${surefireArgLine} alphabetical