Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

instanceof is going to be removed?

 
nomeaning
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello, what should i do respect to this warning? i have got it when i tried to use the instanceof operator.. thank you
warning: com.sun.org.apache.bcel.internal.generic.INSTANCEOF is Sun proprietary API and may be removed in a future release
import com.sun.org.apache.bcel.internal.generic.INSTANCEOF;
 
bart zagers
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using some type of IDE?
It looks like you mistyped a little and it added an import for

import com.sun.org.apache.bcel.internal.generic.INSTANCEOF

at the top of your file, which you don't need to use the instanceof operator (lowercase). If that's the case, just remove the import statement.
(Just guessing, I might be wrong)
 
nomeaning
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that is exactly what have happened...
this is my first app using an IDE (netBeans)

thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic