File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes cannot find symbol might mean refuse to notice symbol Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "cannot find symbol might mean refuse to notice symbol" Watch "cannot find symbol might mean refuse to notice symbol" New topic
Author

cannot find symbol might mean refuse to notice symbol

Charles Bradley
Greenhorn

Joined: Oct 04, 2009
Posts: 25
I was composing a request for help when I discovered the source of my problem. I was getting an error message "cannot find symbol" referring to a symbol in another class in the same directory. If you are referring to a method, but forget the parentheses, javac only checks the instance variables. I hope no one else makes this silly mistake, but if you do, remember that cannot find symbol might mean refuse to notice symbol. Thanks for a useful site. I expect to visit it frequently.
Fred Hamilton
Ranch Hand

Joined: May 13, 2009
Posts: 679
been there. Would you prefer "Could not find the symbol among those types of symbols you told me to look under". ?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
Welcome to JavaRanch
Charles Bradley
Greenhorn

Joined: Oct 04, 2009
Posts: 25
I hesitate to suggest a changed message. My limited experience with compiler error messages and recovery procedures tells me it is hard to find the ideal message to cover every situation. My comment was not a complaint about the compiler. It was just an observation that might help another user.
Fred Hamilton
Ranch Hand

Joined: May 13, 2009
Posts: 679
I was joking. It's cool that you offer observations when no-one has asked, but this being a help forum it is likely that if you continue to do so, then people will continue to assume that you are asking for help or an explanation. No big deal though.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot find symbol might mean refuse to notice symbol