This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clarification sought on calling Abstract method

 
Saurav Chetia
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic