Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master does not build: type parameters of <T>org.hamcrest.Matcher<java.lang.Iterable<? super T>> cannot be determined #482

Closed
matthewfarwell opened this issue Aug 16, 2012 · 1 comment

Comments

@matthewfarwell
Copy link
Contributor

When I try and build master (using ant dist), I get:

build:
    [mkdir] Created dir: d:\code\junit\d\junit\target\main
    [javac] Compiling 164 source files to d:\code\junit\d\junit\target\main
    [javac] d:\code\junit\d\junit\src\main\java\org\junit\matchers\JUnitMatchers.java:34: type parameters of <T>org.hamcrest.Matcher<java.lang.Iterable<? super T>> cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,java.lang.Object
    [javac]         return CoreMatchers.hasItem(elementMatcher);
     [javac]                                   ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 error

Also, when I remove this error, there are a lot of warnings when building the javadoc (can't find org.hamcrest.*).

This is on Windows jdk1.6.0_22, ant 1.8.1.

@marcphilipp
Copy link
Member

This has also been reported in #474. Please see my comment there.

In addition, I have opened a separate, new issue to discuss the Javadoc generation warnings: #487.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants