Community
Participate
Working Groups
Created attachment 258525 [details] Program The following program doesn't present compilation error when compiling in ECJ but it must not be compilable. Program public class A { private <T extends Object> long y(){ return y(); } public class B extends A { protected long y(Integer a){ return y(); } } } Current Results No compilation issues. Expected Results A.java:7: error: method y in class A.B cannot be applied to given types; return y(); ^ required: Integer found: no arguments reason: actual and formal argument lists differ in length 1 error Configuration Software O.S.: Windows 8.1 64bits ECJ: org.eclipse.jdt.core_3.10.2.v20150120-1634.jar (Eclipse Luna 4.4.2) Hardware: Intel Core i5-2410M 2.3 GHz
Same problem as reported in bug 481186, marking as duplicate *** This bug has been marked as a duplicate of bug 481186 ***
Lines coverage count reported by jacoco for this program (20.665) is different from lines coverage count reported for program of the bug 481186 (20.728). Wouldn't it be better to analyse if different source code lines is not causing a new bug?
(In reply to Felipe Pontes from comment #2) > Lines coverage count reported by jacoco for this program (20.665) is > different from lines coverage count reported for program of the bug 481186 > (20.728). Wouldn't it be better to analyse if different source code lines is > not causing a new bug? We try to fix bugs by understanding the semantics, not by statistics :)