-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlang_43.diff
26 lines (26 loc) · 1.76 KB
/
lang_43.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java b/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java
index 404be490..db326880 100644
--- a/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java
+++ b/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java
@@ -414,7 +414,20 @@ public class ExtendedMessageFormat extends MessageFormat {
* @param escapingOn whether to process escaped quotes
* @return <code>appendTo</code>
*/
- private StringBuffer appendQuotedString(String pattern, ParsePosition pos,
+ private StringBuffer appendQuotedString(String pattern, ParsePosition pos, StringBuffer appendTo, // defects4j.instrumentation
+ boolean escapingOn) { // defects4j.instrumentation
+ if (Boolean.parseBoolean(System.getProperty("defects4j.instrumentation.enabled"))) { // defects4j.instrumentation
+ try { // defects4j.instrumentation
+ return appendQuotedString_original(pattern, pos, appendTo, escapingOn); // defects4j.instrumentation
+ } catch (java.lang.OutOfMemoryError e) { // defects4j.instrumentation
+ throw new RuntimeException("[Defects4J_BugReport_Violation]"); // defects4j.instrumentation
+ } // defects4j.instrumentation
+ } else { // defects4j.instrumentation
+ return appendQuotedString_original(pattern, pos, appendTo, escapingOn); // defects4j.instrumentation
+ } // defects4j.instrumentation
+ } // defects4j.instrumentation
+
+ private StringBuffer appendQuotedString_original(String pattern, ParsePosition pos, // defects4j.instrumentation
StringBuffer appendTo, boolean escapingOn) {
int start = pos.getIndex();
char[] c = pattern.toCharArray();