DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2003
    Posts
    9

    Abstract Method Error

    For some reason or other, I keep getting this error message:

    java.lang.AbstractMethodError: BoundedEnv.eaten(LLocationV

    Here is the coding that pertains to it inside class BoundedEnv:

    public void eaten(Location obj)
    {
    // Remove the object from the grid.
    theGrid[obj.row()][obj.col()] = null;
    objectCount--;
    }

    I guess the main question I have, is why is it an Abstract Method Error? The class is called correctly, with no var problems as far as I can tell. If needed, I can supply more information.

  2. #2
    Join Date
    Feb 2004
    Posts
    541
    that error is thrown if a call to an abstract method is made at runtime, and can only be thrown if a class has been changed since the last time the currently executing method was compiled. Did you change the class BoundedEnv at all? I think you'll need to show the class BoundedEnv (or at least the methods row() and col(), and any methods they call).

  3. #3
    Join Date
    Mar 2003
    Posts
    9

    a

    The problem is, the method I'm calling is a void, not an abstract...

    I don't have the coding for row() and col(), all I have for it is the class file. But, as far as I know, they just locate the coordinates of said object in a grid.

    I do have the coding for BoundedEnv, but it is quite lengthy with all the comments that came with it. Want me to post it here slimmed down, or put a link to the complete code on here?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links