I'm trying to test my project with Travis, and it is proving a fair challenge to do. Right now I'm up against this strange error:
/home/travis/build/JJ-Atkinson/splix-controller-
ppcg/src/main/java/com/nmerrill/kothcomm/ui/gui/TournamentPane.java:62: error: no suitable constructor found for Tab(String,CAP#1)
Tab tab = new Tab("Game "+games.getTabs().size(),gamePane.apply(game));
^
constructor Tab.Tab() is not applicable
(actual and formal argument lists differ in length)
constructor Tab.Tab(String) is not applicable
(actual and formal argument lists differ in length)
where CAP#1 is a fresh type-variable:
CAP#1 extends Pane from capture of ? extends Pane
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
This is the code:
// gamePane = Function<U, ? extends Pane>
U game = tournamentRunner.createGame();
game.start();
Tab tab = new Tab("Game "+games.getTabs().size(), gamePane.apply(game));
This is a valid constructor, as the code compiles fine on my machine, but something is up with the travis build.
.travis.yml
language: java
jdk:
- oraclejdk8
script: ./gradlew check
Full file of TournamentPane
is here.