Closed valerio-castelli closed 6 years ago
We removed the unsupported diamond operator. We're using Java version 1.5 to compile, is that correct?
No, it's not - you should be using Java 8, as stated at the beginning of the course. Your code is now compiling, but you should absolutely make sure to target Java 8.
Your code does not compile:
[ERROR] /var/jenkins_home/workspace/LM50/src/main/java/it/polimi/ingsw/model/Game.java:[51,31] diamond operator is not supported in -source 1.5 (use -source 7 or higher to enable diamond operator) [ERROR] /var/jenkins_home/workspace/LM50/src/main/java/it/polimi/ingsw/model/DiceBag.java:[28,30] diamond operator is not supported in -source 1.5 (use -source 7 or higher to enable diamond operator)
Are you sure you're using the right version of Java?