#19916: JUnit won't build with "incompatible types" errors ------------------------------------+--------------------------------------- Reporter: jon.abourbih@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: junit ------------------------------------+--------------------------------------- I cannot build the JUnit macport. The build fails with: ---> Building junit Error: Target org.macports.build returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_junit/work/junit4.6 && javac -d classes -cp /opt/local/share/java/hamcrest-core.jar -sourcepath src src/org/junit/Assume.java" returned error 1 Command output: src/org/junit/internal/matchers/IsCollectionContaining.java:44: incompatible types found : org.hamcrest.Matcher<java.lang.Iterable<java.lang.Object>> required: org.hamcrest.Matcher<java.lang.Iterable<T>> return hasItem(equalTo(element)); ^ src/org/junit/internal/matchers/IsCollectionContaining.java:54: cannot find symbol symbol : method allOf(java.util.Collection<org.hamcrest.Matcher<? extends java.lang.Iterable<T>>>) location: class org.junit.internal.matchers.IsCollectionContaining<T> return allOf(all); ^ src/org/junit/internal/matchers/IsCollectionContaining.java:64: cannot find symbol symbol : method allOf(java.util.Collection<org.hamcrest.Matcher<? extends java.lang.Iterable<T>>>) location: class org.junit.internal.matchers.IsCollectionContaining<T> return allOf(all); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 3 errors Error: Status 1 encountered during processing. I have attempted to remove and reinstall hamcrest-core and hamcrest- library, as well as doing a clean removal of junit. -- Ticket URL: <http://trac.macports.org/ticket/19916> MacPorts <http://www.macports.org/> Ports system for Mac OS