# Failed

org.eclipse.jdt.core.tests.compiler.regression.ProblemConstructorTest.test004 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 61 builds (Since #168 )
Took 0.61 sec.

### Error Message

```test004 - Eclipse found warning(s) but Javac did not find any.
----------- Expected ------------

------------ but was ------------
----------\n
1. WARNING in X.java (at line 4)\n
public int unusedMethod() { return this.state; }\n
^^^^^^^^^^^^^^\n
The method unusedMethod() from the type X.M is never used locally\n
----------\n
2. WARNING in X.java (at line 5)\n
public M (int state) { this.state = state;} \n
^^^^^^^^^^^^^\n
The constructor X.M(int) is never used locally\n
----------\n
3. WARNING in X.java (at line 6)\n
public int unusedField = 0;\n
^^^^^^^^^^^\n
The value of the field X.M.unusedField is not used\n
----------\n
4. WARNING in X.java (at line 7)\n
public class N {}\n
^\n
The type X.M.N is never used locally\n
----------\n

--------- Difference is ----------
expected:<[]> but was:<[----------\n
1. WARNING in X.java (at line 4)\n
public int unusedMethod() { return this.state; }\n
^^^^^^^^^^^^^^\n
The method unusedMethod() from the type X.M is never used locally\n
----------\n
2. WARNING in X.java (at line 5)\n
public M (int state) { this.state = state;} \n
^^^^^^^^^^^^^\n
The constructor X.M(int) is never used locally\n
----------\n
3. WARNING in X.java (at line 6)\n
public int unusedField = 0;\n
^^^^^^^^^^^\n
The value of the field X.M.unusedField is not used\n
----------\n
4. WARNING in X.java (at line 7)\n
public class N {}\n
^\n
The type X.M.N is never used locally\n
----------\n
]>```

### Stacktrace

```junit.framework.ComparisonFailure:
test004 - Eclipse found warning(s) but Javac did not find any.
----------- Expected ------------

------------ but was ------------
----------\n
1. WARNING in X.java (at line 4)\n
public int unusedMethod() { return this.state; }\n
^^^^^^^^^^^^^^\n
The method unusedMethod() from the type X.M is never used locally\n
----------\n
2. WARNING in X.java (at line 5)\n
public M (int state) { this.state = state;} \n
^^^^^^^^^^^^^\n
The constructor X.M(int) is never used locally\n
----------\n
3. WARNING in X.java (at line 6)\n
public int unusedField = 0;\n
^^^^^^^^^^^\n
The value of the field X.M.unusedField is not used\n
----------\n
4. WARNING in X.java (at line 7)\n
public class N {}\n
^\n
The type X.M.N is never used locally\n
----------\n

--------- Difference is ----------
expected:<[]> but was:<[----------\n
1. WARNING in X.java (at line 4)\n
public int unusedMethod() { return this.state; }\n
^^^^^^^^^^^^^^\n
The method unusedMethod() from the type X.M is never used locally\n
----------\n
2. WARNING in X.java (at line 5)\n
public M (int state) { this.state = state;} \n
^^^^^^^^^^^^^\n
The constructor X.M(int) is never used locally\n
----------\n
3. WARNING in X.java (at line 6)\n
public int unusedField = 0;\n
^^^^^^^^^^^\n
The value of the field X.M.unusedField is not used\n
----------\n
4. WARNING in X.java (at line 7)\n
public class N {}\n
^\n
The type X.M.N is never used locally\n
----------\n
]>
at org.eclipse.jdt.core.tests.compiler.regression.ProblemConstructorTest.test004(ProblemConstructorTest.java:151)
```

### Standard Output

```org.eclipse.jdt.core.tests.compiler.regression.ProblemConstructorTest#test004 - 1.8
X.java [
public class X {
private class M {
private int state = 0;
public int unusedMethod() { return this.state; }
public M (int state) { this.state = state;}
public int unusedField = 0;
public class N {}
}
private class N {
private int state = 0;
public int usedMethod() { new O(); return new N(this.state + this.usedField).state; }
public N (int state) { this.state = state;}
public int usedField = 0;
public class O {}
}
public class P {
private int state = 0;
public int unusedMethod() { return this.state; }
public P (int state) { this.state = state;}
public int unusedField = 0;
public class N {}
}
public M foo(M m, N n) {
n.usedMethod(); return m;
}
}

]

Full results sent to /home/jenkins/agent/workspace/eclipse.jdt.core-run.javac-1.8/tmp/comptest/run.1615612093149/1.8.0_202_20210313_050818.txt
```

### Standard Error

```----------------------------------------
```
{"ft_lang_label":"__label__en","ft_lang_prob":0.60900337,"math_prob":0.65350294,"size":4171,"snap":"2021-31-2021-39","text_gpt3_token_len":1147,"char_repetition_ratio":0.22366211,"word_repetition_ratio":0.8135593,"special_character_ratio":0.3989451,"punctuation_ratio":0.1827957,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9903413,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-07-23T22:40:52Z\",\"WARC-Record-ID\":\"<urn:uuid:3568232e-439d-4e16-926f-625078c2e65a>\",\"Content-Length\":\"19763\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:4a217edc-f9db-4516-8203-b381171c0f0d>\",\"WARC-Concurrent-To\":\"<urn:uuid:89eaa284-46a6-4409-b923-d3ef5a5e7ea1>\",\"WARC-IP-Address\":\"198.41.30.195\",\"WARC-Target-URI\":\"https://ci.eclipse.org/jdt/job/eclipse.jdt.core-run.javac-1.8/228/testReport/org.eclipse.jdt.core.tests.compiler.regression/ProblemConstructorTest/test004___1_8/\",\"WARC-Payload-Digest\":\"sha1:L2YREPWUL6SXN2Q5CV76COGSS42EK4ZM\",\"WARC-Block-Digest\":\"sha1:LJAP6GIYEIGTBR6DXRKLID7M5OFIJW6T\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046150067.51_warc_CC-MAIN-20210723210216-20210724000216-00395.warc.gz\"}"}