Results 1 to 2 of 2

Thread: Verify Error

  1. #1
    Join Date
    Nov 2010
    Posts
    26
    Rep Power
    0

    Default Verify Error

    I'm getting an error for a class that worked perfectly fine before.
    Java Code:
    Exception in thread "AWT-EventQueue-0" java.lang.VerifyError: 
    (class: pong/Ball, method: <init> signature: (II)V) Constructor must call super() or this()
    It says the problem shows up with this line:
    Java Code:
    allBalls.add(new Ball(200, 200));
    However my constructor for balls is as follows: (It does call super()... )
    Java Code:
        public Ball(int x, int y) {
            super(x, y);
            truX = (double) x;
            truY = (double) y;
        }
    Again I used this code before with no changes and it worked perfectly. I also searched a few older threads and I cleared the cache, but that didn't fix my problem (or maybe I did it wrong?)

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,798
    Rep Power
    7

    Default

    Quote Originally Posted by Lord Voldemort View Post
    Again I used this code before with no changes and it worked perfectly.
    Impossible. Something must have changed. Try deleting all your .class files and compiling again.

Similar Threads

  1. Verify Password
    By hypes057 in forum New To Java
    Replies: 11
    Last Post: 08-29-2011, 01:27 PM
  2. Boggle game - verify words entered by user
    By dragonwolf in forum New To Java
    Replies: 11
    Last Post: 11-30-2009, 04:18 AM
  3. Java RE SE does not install/verify
    By jlbm in forum New To Java
    Replies: 1
    Last Post: 03-20-2009, 08:45 PM
  4. Verify if a file as been, for sure, printed
    By pjmorce in forum Advanced Java
    Replies: 0
    Last Post: 11-20-2008, 10:45 AM
  5. how to take input and verify input in Java programs
    By bilal_ali_java in forum Advanced Java
    Replies: 0
    Last Post: 07-21-2007, 08:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •