TommasoD / progetto-sagrada

Ingegneria Software 2018
0 stars 0 forks source link

Compilation issues #4

Closed valerio-castelli closed 6 years ago

valerio-castelli commented 6 years ago

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?

TommasoD commented 6 years ago

We removed the unsupported diamond operator. We're using Java version 1.5 to compile, is that correct?

valerio-castelli commented 6 years ago

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.