Opened 13 years ago

Closed 5 years ago

#27086 closed update (fixed)

junit: update to 4.10

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: chrstphrchvz (Christopher Chavez)
Port: junit

Description

This patch tries to update junit to 4.8.2 but fails to build with this error:

build:
    [mkdir] Created dir: /opt/local/var/macports/build/_Users_rschmidt_macports_dports_java_junit/work/junit4.8.2/target/main
    [javac] Compiling 154 source files to /opt/local/var/macports/build/_Users_rschmidt_macports_dports_java_junit/work/junit4.8.2/target/main
    [javac] /opt/local/var/macports/build/_Users_rschmidt_macports_dports_java_junit/work/junit4.8.2/src/main/java/org/junit/rules/ExpectedException.java:73: and(org.hamcrest.Matcher<? super java.lang.Object>) in org.hamcrest.core.CombinableMatcher<java.lang.Object> cannot be applied to (org.hamcrest.Matcher<capture#868 of ?>)
    [javac] 			fMatcher= both(fMatcher).and(matcher);
    [javac] 			                        ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 error

There is already a patch from the prior version that fixes some incompatibilities with hamcrest 1.2, which resolved several other instances of this "Some input files use or override a deprecated API" message; see #19916. The patch presumably just needs to be expanded to cover this one additional case. Anthony, do you remember how you did that before / where you got that patch from?

Attachments (2)

junit4.8.2.diff (4.4 KB) - added by ryandesign (Ryan Carsten Schmidt) 13 years ago.
incomplete patch
junit4.9.diff (6.5 KB) - added by ryandesign (Ryan Carsten Schmidt) 13 years ago.
incomplete patch

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: junit4.8.2.diff added

incomplete patch

Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: junit4.9.diff added

incomplete patch

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Summary: junit: update to 4.8.2junit: update to 4.9

Updated patchfile for 4.9; same error.

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: nox@… removed
Summary: junit: update to 4.9junit: update to 4.10

comment:3 Changed 5 years ago by chrstphrchvz (Christopher Chavez)

junit has since been updated to 4.12. Can this be closed?

comment:4 Changed 5 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:5 Changed 5 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed
Version: 1.9.1
Note: See TracTickets for help on using tickets.