Thread: cannot find symbol: Constructor Client()

Results 1 to 6 of 6
  1. #1 cannot find symbol: Constructor Client() 
    Endeavor

    Mikey`'s Avatar
    Join Date
    Dec 2007
    Posts
    4,434
    Thanks given
    715
    Thanks received
    1,435
    Rep Power
    1202
    Any idea why it's throwing this error at me?

    Code:
    Building Server...
    src\server\model\players\PlayerLogin.java:11: cannot find symbol
    symbol  : constructor Client()
    location: class server.model.players.Client
    class PlayerLogin extends Client {
    ^
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

  2. #2  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Client.java

    Code:
    public Client() { }
    Is missing?
    Reply With Quote  
     

  3. #3  
    Endeavor

    Mikey`'s Avatar
    Join Date
    Dec 2007
    Posts
    4,434
    Thanks given
    715
    Thanks received
    1,435
    Rep Power
    1202
    Quote Originally Posted by InterwebzPixel View Post
    Client.java

    Code:
    public Client() { }
    Is missing?
    Code:
    public Client(IoSession s, int _playerId) {
            super(_playerId);
            this.session = s;
            synchronized(this) {
                outStream = new Stream(new byte[Config.BUFFER_SIZE]);
                outStream.currentOffset = 0;
            }
            inStream = new Stream(new byte[Config.BUFFER_SIZE]);
            inStream.currentOffset = 0;
            buffer = new byte[Config.BUFFER_SIZE];
        }
    There it is.
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Feb 2008
    Posts
    384
    Thanks given
    30
    Thanks received
    26
    Rep Power
    0
    in your new file or whatever you have to call super();... since there are parameters for the constructor Client. so in something like this I think

    Code:
    public PlayerLogin() {
           super(iosession, playerId);
    }
    Reply With Quote  
     

  5. #5  
    Endeavor

    Mikey`'s Avatar
    Join Date
    Dec 2007
    Posts
    4,434
    Thanks given
    715
    Thanks received
    1,435
    Rep Power
    1202
    Quote Originally Posted by billygotshot View Post
    in your new file or whatever you have to call super();... since there are parameters for the constructor Client. so in something like this I think

    Code:
    public PlayerLogin() {
           super(iosession, playerId);
    }
    I'll try.
    Reply With Quote  
     

  6. #6  
    Endeavor

    Mikey`'s Avatar
    Join Date
    Dec 2007
    Posts
    4,434
    Thanks given
    715
    Thanks received
    1,435
    Rep Power
    1202
    Nevermind I'll just do something else. Close.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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