File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checking object type

 
Kris Venture
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a problem with identifying objects.
There is a class that extends another one:


How can I check that class AAA (or instance) can access public methods from A?

is not working if AAA is defined in different package.

Thanks a lot.
 
Henry Wong
author
Marshal
Pie
Posts: 20828
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is not working if AAA is defined in different package.


Can you elaborate your issue a bit more? The exception being thrown? The compile error?

What you are describing doesn't make sense...

Henry
 
Kris Venture
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My mistake - I misspelled my class name.
 
rk palleru
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think specify the fully qualified package name in classes
 
Anirudh Aithal
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, Posted in wrong post.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic