Thread: [614] How to fix 2 warnings in client.

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 [614] How to fix 2 warnings in client. 
    OWNER @ BOFA (Now Hiring)
    Mr Bill's Avatar
    Join Date
    May 2010
    Posts
    518
    Thanks given
    15
    Thanks received
    35
    Rep Power
    62
    If you get these warnings:
    Code:
    Class128.java:60: warning: non-varargs call of varargs method with inexact argum
    ent type for last parameter;
    cast to java.lang.Object for a varargs call
    cast to java.lang.Object[] for a non-varargs call and to suppress this warning
                            Long var_long = (Long) method.invoke(runtime, null);
                                                                          ^
    Class279_Sub13.java:103: warning: non-varargs call of varargs method with inexac
    t argument type for last parameter;
    cast to java.lang.Object for a varargs call
    cast to java.lang.Object[] for a non-varargs call and to suppress this warning
                        Integer integer = (Integer) method.invoke(runtime, null);
                                                                           ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    2 warnings
    Press any key to continue . . .
    go into class128.java.
    search for:
    Code:
    Long var_long = (Long) method.invoke(runtime, null);
    change to:
    Code:
    Long var_long = (Long) method.invoke(runtime, (Object[])null);

    go into Class279_Sub13.java
    search for:
    Code:
    Integer integer = (Integer) method.invoke(runtime, null);
    change to:
    Code:
    Integer integer = (Integer) method.invoke(runtime, (Object[])null);
    Compile.
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Registered Member
    Join Date
    Apr 2010
    Posts
    368
    Thanks given
    7
    Thanks received
    64
    Rep Power
    18
    These warnings arent errors.
    Reply With Quote  
     

  4. #3  
    Registered Member
    Join Date
    Aug 2010
    Posts
    31
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Can you give me your client compiler and run?
    Reply With Quote  
     

  5. #4  
    OWNER @ BOFA (Now Hiring)
    Mr Bill's Avatar
    Join Date
    May 2010
    Posts
    518
    Thanks given
    15
    Thanks received
    35
    Rep Power
    62
    Quote Originally Posted by Red Hot View Post
    These warnings arent errors.
    Sorry, I put errors in the post, but the title says warnings.

    Quote Originally Posted by Rune H4 View Post
    Can you give me your client compiler and run?
    No, sorry. If you dont know much about programing start on 317/508 and take tutorials.
    Last edited by Method; 08-19-2010 at 03:21 AM.
    Reply With Quote  
     

  6. #5  
    Registered Member wa3ad's Avatar
    Join Date
    Aug 2010
    Age
    26
    Posts
    1,276
    Thanks given
    174
    Thanks received
    213
    Rep Power
    0
    lol didnt that other dude gave u the fix?
    besides this doesnt do nothing...
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #6  
    Omniscient
    Ima Shine's Avatar
    Join Date
    May 2010
    Posts
    1,186
    Thanks given
    209
    Thanks received
    69
    Rep Power
    489
    Im already hosting the 614 lol, if you want the client link, its:[Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #7  
    OWNER @ BOFA (Now Hiring)
    Mr Bill's Avatar
    Join Date
    May 2010
    Posts
    518
    Thanks given
    15
    Thanks received
    35
    Rep Power
    62
    Quote Originally Posted by wa3ad View Post
    lol didnt that other dude gave u the fix?
    besides this doesnt do nothing...
    I know it does nothing, but it's annoying looking at warnings, and yes he did i'm just releasing. Nobody did.

    Quote Originally Posted by RuneSlay View Post
    Im already hosting the 614 lol, if you want the client link, its:[Only registered and activated users can see links. ]

    how do i do it noww; )
    Last edited by Method; 08-19-2010 at 03:22 AM.
    Reply With Quote  
     

  9. #8  
    Hi.

    'Mystic Flow's Avatar
    Join Date
    Nov 2007
    Posts
    7,141
    Thanks given
    256
    Thanks received
    1,247
    Rep Power
    3636
    It's okay to have that ..... it's the same with any other warnings.

    [Only registered and activated users can see links. ]

    Reply With Quote  
     

  10. #9  
    :doge:

    Join Date
    Jan 2009
    Posts
    3,759
    Thanks given
    221
    Thanks received
    816
    Rep Power
    2113
    u dont even need those lines.. just comment them out
    Reply With Quote  
     

  11. #10  
    OWNER @ BOFA (Now Hiring)
    Mr Bill's Avatar
    Join Date
    May 2010
    Posts
    518
    Thanks given
    15
    Thanks received
    35
    Rep Power
    62
    Quote Originally Posted by `Discardedx2 View Post
    u dont even need those lines.. just comment them out
    when i comment them out i get errors, and do you have login? it says error connecting to server for me :rolleyes:
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Tags for this Thread

View Tag Cloud

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