This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Clarification sought on calling Abstract method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Clarification sought on calling Abstract method" Watch "Clarification sought on calling Abstract method" New topic
Author

Clarification sought on calling Abstract method

Saurav Chetia
Greenhorn

Joined: Oct 28, 2002
Posts: 10
Hi there !
We can call abstract methods... isn't it?
We have this <B>AbstractMethodError</B> in java.lang package which is said to be thrown when an application tries to call an abstract method.
However, I could call <B>Process.default()</B>(java.lang.Process class) method in my application. There was no compiler error or runtime exception.
Can anybody explain under what conditions is this <B>AbstractMethodError</B> thrown ?
Can anybody give more information on 'Calling abstract methods'?
Thanks
-Saurav
Alastair Rae
Greenhorn

Joined: Nov 14, 2003
Posts: 7
To quote the API:
"Normally, this error is caught by the compiler; this error can only occur at run time if the definition of some class has incompatibly changed since the currently executing method was last compiled"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Clarification sought on calling Abstract method
 
Similar Threads
AbstractMethodError
JRadioButton in JTable, AbstractMethodError error with j2sdk1.4.2_06
AbstractMethodError
AbstractMethodError
AbstractMethodError