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.

1
7 comments

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

1
Avatar
Permanently deleted user

Here is a github link, please do as what readme says, thanks.

https://github.com/YSongxiao/IDEA_BUG_REPORT

0
Avatar
Permanently deleted user

If there are something wrong with my sample project, please leave a comment.

0

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. 

0
Avatar
Permanently deleted user

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.

0

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.

0
Avatar
Permanently deleted user

Thanks, but I have created a bug request yesterday on youtrack.

Thank you all the same.

0

Please sign in to leave a comment.