简体   繁体   中英

Netbeans shows compilation error in removed code

i'm using netbeans IDE. the error was caused due to a variable i created in that method. but i deleted that method including its variables as you can see.

在此处输入图像描述

i removed that method. i tried to comment out that line but it still shows error. i'm new and i'll appreciate if you explain what's wrong here or its a bug in my IDE because i haven't seen anything like it before. when i hover my cursor on bulb and click it doesn't do or show anything.

If we can see the whole code of that class, it would be more helpful to analyze the error.

First thing comes in my mind like these errors is a syntax error. Check that if you mistakenly commented a { or } so that a bracket is opened but didn't closed.

Also try to clean the project and build again.

Just reopen the file and see if the error is still there. It can happen that Netbeans does not show you the correct error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM