@@ -37,24 +37,6 @@ public UnresolvedForwardReference(JsonParser p, String msg) {
3737 _unresolvedIds = new ArrayList <UnresolvedId >();
3838 }
3939
40- /**
41- * @deprecated Since 2.7
42- */
43- @ Deprecated // since 2.7
44- public UnresolvedForwardReference (String msg , JsonLocation loc , ReadableObjectId roid ) {
45- super (msg , loc );
46- _roid = roid ;
47- }
48-
49- /**
50- * @deprecated Since 2.7
51- */
52- @ Deprecated // since 2.7
53- public UnresolvedForwardReference (String msg ) {
54- super (msg );
55- _unresolvedIds = new ArrayList <UnresolvedId >();
56- }
57-
5840 /*
5941 /**********************************************************
6042 /* Accessor methods
@@ -98,12 +80,27 @@ public String getMessage()
9880 return sb .toString ();
9981 }
10082
83+ /**
84+ * This method is overridden to prevent filling of the stack trace when
85+ * constructors are called (unfortunately alternative constructors can
86+ * not be used due to historical reasons).
87+ * To explicitly fill in stack traces method {@link #withStackTrace()}
88+ * needs to be called after construction.
89+ *
90+ * @since 2.14
91+ */
10192 @ Override
10293 public synchronized UnresolvedForwardReference fillInStackTrace () {
10394 return this ;
10495 }
10596
106- public synchronized UnresolvedForwardReference _fillInStackTrace () {
97+ /**
98+ * "Mutant" factory method for filling in stack trace; needed since the default
99+ * constructors will not fill in stack trace.
100+ *
101+ * @since 2.14
102+ */
103+ public UnresolvedForwardReference withStackTrace () {
107104 super .fillInStackTrace ();
108105 return this ;
109106 }
0 commit comments