Muzamil Mehmood
Muzamil Mehmood

Reputation: 44

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.

enter image description here

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.

Upvotes: 1

Views: 296

Answers (2)

AndiCover
AndiCover

Reputation: 1734

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

Upvotes: 1

Hur T.
Hur T.

Reputation: 3

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.

Upvotes: 0

Related Questions