You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juneau.apache.org by ja...@apache.org on 2019/11/17 14:54:44 UTC

[juneau] branch master updated: JUNEAU-164 Stacktrace hashing should take proxies and lamba expressions into account.

This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new 5c25846  JUNEAU-164 Stacktrace hashing should take proxies and lamba expressions into account.
5c25846 is described below

commit 5c258461b81955b96cd839db416cd62e5c10d880
Author: JamesBognar <ja...@apache.org>
AuthorDate: Sun Nov 17 09:54:30 2019 -0500

    JUNEAU-164 Stacktrace hashing should take proxies and lamba expressions
    into account.
---
 .../src/main/java/org/apache/juneau/utils/StackTraceDatabase.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/utils/StackTraceDatabase.java b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/utils/StackTraceDatabase.java
index e427860..0f8891c 100644
--- a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/utils/StackTraceDatabase.java
+++ b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/utils/StackTraceDatabase.java
@@ -68,7 +68,8 @@ public class StackTraceDatabase {
 			for (StackTraceElement e : t.getStackTrace()) {
 				if (e.getClassName().equals(stopClass))
 					break;
-				i ^= e.hashCode();
+				if (e.getClassName().indexOf('$') == -1)
+					i ^= e.hashCode();
 			}
 			t = t.getCause();
 		}