defects4j
defects4j copied to clipboard
Error for mutation analysis of Common-Collections
Hello,
Compiling Common-collections using "defects4j compile" works fine, however, "defects4j mutation" gives this error.
[javac] /home/unimelb.edu.au/nneelofar/Documents/Matilda/software-testing/fault-localization/defects4j-data/Collections-26f/src/main/java/org/apache/commons/collections4/bidimap/TreeBidiMap.java:1740: error: name clash: remove() in TreeBidiMap.ViewIterator and remove() in Iterator have the same erasure, yet neither overrides the other [javac] class ViewMapIterator extends ViewIterator implements OrderedMapIterator<K, V> { [javac] ^ [javac] /home/unimelb.edu.au/nneelofar/Documents/Matilda/software-testing/fault-localization/defects4j-data/Collections-26f/src/main/java/org/apache/commons/collections4/bidimap/TreeBidiMap.java:1786: error: name clash: remove() in TreeBidiMap.ViewIterator and remove() in Iterator have the same erasure, yet neither overrides the other [javac] class InverseViewMapIterator extends ViewIterator implements OrderedMapIterator<V, K> { [javac] ^ [javac] /home/unimelb.edu.au/nneelofar/Documents/Matilda/software-testing/fault-localization/defects4j-data/Collections-26f/src/main/java/org/apache/commons/collections4/bidimap/TreeBidiMap.java:1832: error: name clash: remove() in TreeBidiMap.ViewIterator and remove() in Iterator have the same erasure, yet neither overrides the other [javac] class ViewMapEntryIterator extends ViewIterator implements OrderedIterator<Map.Entry<K, V>> { [javac] ^ [javac] /home/unimelb.edu.au/nneelofar/Documents/Matilda/software-testing/fault-localization/defects4j-data/Collections-26f/src/main/java/org/apache/commons/collections4/bidimap/TreeBidiMap.java:1855: error: name clash: remove() in TreeBidiMap.ViewIterator and remove() in Iterator have the same erasure, yet neither overrides the other [javac] class InverseViewMapEntryIterator extends ViewIterator implements OrderedIterator<Map.Entry<V, K>> { [javac] ^ [javac] #Generated Mutants: 18 (2067 ms) [javac] Note: /home/unimelb.edu.au/nneelofar/Documents/Matilda/software-testing/fault-localization/defects4j-data/Collections-26f/src/main/java/org/apache/commons/collections4/collection/IndexedCollection.java has additional uses or overrides of a deprecated API. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 4 errors [javac] 100 warnings
BUILD FAILED
@neelofarhassan
Thank you for the report. I am able to reproduce the issue. We will look into it and see what we can do to fix it!
I was also able to reproduce this. Seems like a backward-compatibility issue (Java 7 vs. Java 8). We are about to update Major in Defects4J; I'll test the newer Major version on Collections to see whether this solves the problem.