[MacPorts] #19916: JUnit won't build with "incompatible types" errors
#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
#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 ------------------------------------+--------------------------------------- Comment(by jon.abourbih@…): Additional note: I'm using MacOS X 10.5.7 with Apple's Java 1.5 JVM. -- Ticket URL: <http://trac.macports.org/ticket/19916#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19916: JUnit won't build with "incompatible types" errors ------------------------------------+--------------------------------------- Reporter: jon.abourbih@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: junit ------------------------------------+--------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => nox@… Old description:
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.
New description: 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. -- Comment: WFM. What version of Xcode are you running? Please update to 3.1.2 if not, clean the port and try again. -- Ticket URL: <http://trac.macports.org/ticket/19916#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19916: JUnit won't build with "incompatible types" errors -------------------------------------+-------------------------------------- Reporter: jon.abourbih@… | Owner: nox@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: Port: junit | -------------------------------------+-------------------------------------- Changes (by nox@…): * status: new => closed * resolution: => fixed Comment: Fixed by r52233. -- Ticket URL: <http://trac.macports.org/ticket/19916#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts