-
Notifications
You must be signed in to change notification settings - Fork 12
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
Local and server-side tests can't run with newer Java syntax since source version is set to 1.6 instead of 7 #138
Comments
I went to the server to see if the server could give any extra information on why the server-side tests where failing, and I could see an error code exactly the same as the local error I just fixed:
Seems to me like the same problem I had locally is also the problem on the server. The standard project.properties files need to be edited to allow newer source versions. again: Extra verification that this is indeed the problem:
So it's not just the diamond operator, it's also a problem with strings in switches. |
Moving this here: materiaalit/2013-oo-programming#1 |
NOTE: this isn't really an issue with the plugin but more with the assignments that are downloaded using the plugin, if anyone could point me to where I should report issues with the assignments that would be great.
Since server-side tests don't work anymore either (will create issue after this) I wanted to run the local tests until I knew for sure the program was right, to make sure that the problem was not in reading the returned data from the server but in the server testing process.
To reproduce:
and the compiler error output:
To fix:
javac.source
andjavac.target
from 1.6 to 7 (for new enough syntax to include this diamond operator and String objects in case switches)They now work.
To me this seems like a problem with how the assignments where created, but I have no idea where in this project they are created, if I should have made this issue somewhere else please tell me.
The text was updated successfully, but these errors were encountered: