Cannot override method from superclass?

Discussion in 'Plugin Development' started by mine-care, Feb 28, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    mine-care

    Hello bukkit members!
    up untill now i am trying to override the method called getFullReply in a class that extends RemoteStatursListnerer where the target method is kept in.
    Eclipse gives this error:
    The method getFullReply(DatagramPacket) of type Overridem must override or implement a supertype method
    and asks me to remove override anotation.
    Using craftbukkti 1.7.4 for the server and the api in the build path.
    What im i doin wrong?
     
  2. Offline

    tomudding

    Are you sure that the method "getFullReply" is the same as in the Superclass?
     
  3. Offline

    mine-care

  4. Offline

    Konato_K

    @mine-care The method is private, one does not simple override private methods
     
  5. Offline

    mine-care

    @Konato_K oh mai! i just noticed! ty! but... how do i override it, never been across such a prob :/
     
  6. Offline

    Konato_K

    @mine-care You don't, you can only override public and protected methods, private methods are supposed to be used internally and they are not exposes, anyway, what exactly you're trying to do? You can use your not-overriden method internally too
     
    tomudding likes this.
  7. Offline

    mine-care

    @Konato_K Ahh :( ill find a way then... thanks!
     
Thread Status:
Not open for further replies.

Share This Page