BUG report for IDEA 2019.3 community
Answered
When I try to create an java enum such as “test” in a java class while an enum named “TEST” existed in another java class of the same project, and “TEST” is already compiled(So you can find a file named “TEST” in filter “out”) , after I compiling the enum “test”, I find that the content of the file “TEST” is replaced by the content of “test” without any warnings. This will cause the “class not found” error when some code wants to use the data of enum test.
Please sign in to leave a comment.
Could not reproduce that. May you share a sample project where the issue could be reproduced?
You may send a link to GitHub, or share it privately:
https://intellij-support.jetbrains.com/hc/en-us/articles/206869619-Uploading-Large-Files-for-JetBrains-Support-Team
Here is a github link, please do as what readme says, thanks.
https://github.com/YSongxiao/IDEA_BUG_REPORT
If there are something wrong with my sample project, please leave a comment.
This is hardly related to IntelliJ IDEA, but to the Java compiler iteslf. This (replacing the content of compiled class) could be reproduced even without IntelliJ IDEA.
But at the 4th operation in sample project, Eclipse may raise this error. In fact, if there is no error like what Eclipse has raised, it is difficult to find the problem.
I have created a bug request for you:
https://youtrack.jetbrains.com/issue/IDEA-235453
Feel free to watch it in order to be notified once it has updates. See this article if you are not familiar with YouTrack.
Thanks, but I have created a bug request yesterday on youtrack.
Thank you all the same.