@@ -37,24 +37,6 @@ public UnresolvedForwardReference(JsonParser p, String msg) {
37
37
_unresolvedIds = new ArrayList <UnresolvedId >();
38
38
}
39
39
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
-
58
40
/*
59
41
/**********************************************************
60
42
/* Accessor methods
@@ -98,12 +80,27 @@ public String getMessage()
98
80
return sb .toString ();
99
81
}
100
82
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
+ */
101
92
@ Override
102
93
public synchronized UnresolvedForwardReference fillInStackTrace () {
103
94
return this ;
104
95
}
105
96
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 () {
107
104
super .fillInStackTrace ();
108
105
return this ;
109
106
}
0 commit comments