From 858034b4a6e3bed31702a1ff4229bc8c165a661c Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Tue, 15 Dec 2020 14:12:54 +0000 Subject: [PATCH] Better log message --- core/src/main/java/org/kohsuke/stapler/lang/FieldRef.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/kohsuke/stapler/lang/FieldRef.java b/core/src/main/java/org/kohsuke/stapler/lang/FieldRef.java index 4956e19618..60bd34798d 100644 --- a/core/src/main/java/org/kohsuke/stapler/lang/FieldRef.java +++ b/core/src/main/java/org/kohsuke/stapler/lang/FieldRef.java @@ -87,7 +87,7 @@ public Object get(Object instance) throws IllegalAccessException { try { return f.get(instance); } catch (IllegalAccessException e) { - LOGGER.warning(e.getClass().getName() + ": Please report to the respective component:\n " + e.getMessage()); + LOGGER.warning(e.getClass().getName() + ": Processing this request relies on deprecated behavior that will be disallowed in future releases of Java. See https://jenkins.io/redirect/stapler-reflective-access/ for more information. Details: " + e.getMessage()); f.setAccessible(true); return f.get(instance); }