Skip to content

Compiler error #19

@foobnix

Description

@foobnix

src/at/stefl/commons/util/collection/primitive/AbstractPrimitiveBooleanSet.java:5: error: name clash: iterator() in Collection and iterator() in Set have the same erasure, yet neither overrides the other
[javac] public abstract class AbstractPrimitiveBooleanSet extends
[javac] ^
[javac] where E#1,E#2 are type-variables:
[javac] E#1 extends Object declared in interface Collection
[javac] E#2 extends Object declared in interface Set
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error

added the line to AbstractPrimitiveBooleanSet
@OverRide
public abstract PrimitiveBooleanIterator iterator();

solve the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions