aboutsummaryrefslogtreecommitdiff
path: root/agent/src/main/java/jaz/Ter.java
diff options
context:
space:
mode:
authorNorbert Schneider <norbert.schneider@code-intelligence.com>2022-05-05 09:12:07 +0200
committerNorbert Schneider <mail@bertschneider.de>2022-05-05 20:02:18 +0200
commitd4967bbcb997a02ecfc7b0634caaa4c85b0399cc (patch)
tree49d913cfbd50f369dc94f21de388faa5cc00d3e1 /agent/src/main/java/jaz/Ter.java
parent3b473ad5b2a142150e3a9182b5670b160261f2c8 (diff)
downloadjazzer-api-d4967bbcb997a02ecfc7b0634caaa4c85b0399cc.tar.gz
Move honeypot class to API
The honeypot class jaz.Zer is needed to successfully execute reproducers of deserialization issues. It's moved to the API artifact to be available on the classpath. Furthermore, reproducers not necessarily reproduce the found issue, e.g. due to global state that leads to different behavior. To take that into account the reproducer check is relaxed.
Diffstat (limited to 'agent/src/main/java/jaz/Ter.java')
-rw-r--r--agent/src/main/java/jaz/Ter.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/agent/src/main/java/jaz/Ter.java b/agent/src/main/java/jaz/Ter.java
new file mode 100644
index 00000000..7814396f
--- /dev/null
+++ b/agent/src/main/java/jaz/Ter.java
@@ -0,0 +1,24 @@
+// Copyright 2021 Code Intelligence GmbH
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package jaz;
+
+/**
+ * A safe to use companion of {@link jaz.Zer} that is used to produce serializable instances of it
+ * with only light patching.
+ */
+@SuppressWarnings("unused")
+public class Ter implements java.io.Serializable {
+ static final long serialVersionUID = 42L;
+}