This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes instanceof is going to be removed? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "instanceof is going to be removed?" Watch "instanceof is going to be removed?" New topic
Author

instanceof is going to be removed?

nomeaning
Greenhorn

Joined: Sep 16, 2005
Posts: 21
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

Joined: Feb 05, 2003
Posts: 234
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

Joined: Sep 16, 2005
Posts: 21
that is exactly what have happened...
this is my first app using an IDE (netBeans)

thank you
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: instanceof is going to be removed?
 
It's not a secret anymore!