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

Does anyone face Java compiler issues after import into IntelliJ? #52

Closed
chanpal opened this issue Aug 12, 2018 · 4 comments
Closed

Does anyone face Java compiler issues after import into IntelliJ? #52

chanpal opened this issue Aug 12, 2018 · 4 comments

Comments

@chanpal
Copy link

chanpal commented Aug 12, 2018

Does anyone face Java compiler issues after import into IntelliJ?

/EPIJudge/epi_judge_java/epi/test_framework/GenericTestHandler.java
Error:(67, 22) java: cannot find symbol
symbol: method of(java.lang.reflect.Type[])
location: interface java.util.List

/EPIJudge/epi_judge_java/epi/test_framework/serialization_traits/TraitsFactory.java
Error:(21, 42) java: cannot infer type arguments for java.util.HashMap<K,V>
reason: cannot use '<>' with anonymous inner classes
Information:java: /Users/cpaladugula/code/EPIJudge/epi_judge_java/epi/test_framework/serialization_traits/TraitsFactory.java uses unchecked or unsafe operations.
Information:java: Recompile with -Xlint:unchecked for details.

/EPIJudge/epi_judge_java/epi/test_framework/TestUtils.java
Error:(30, 22) java: cannot find symbol
symbol: method of(java.lang.String[])
location: interface java.util.List

@hieutdo
Copy link

hieutdo commented Aug 13, 2018

You can fix this issue by installing JDK 10 and set the Module language level to 9.

@chanpal
Copy link
Author

chanpal commented Aug 13, 2018

I tried all combinations of JDK from 8,9 and 10.

I just tried your suggested procedure of changing the Module Language level to 9. The behavior remains the same.

BTW, I am using IntelliJ 2018.1 version. JDK 8 and 10 installed.

@hieutdo
Copy link

hieutdo commented Aug 13, 2018

Below are the settings I'm using in IntelliJ, it can compile and run the judge perfectly.
image
image
image

@chanpal
Copy link
Author

chanpal commented Aug 13, 2018 via email

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

3 participants