×

Discussion Board

Results 1 to 4 of 4

Thread: Code Buster

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    43

    Code Buster

    Help!

    The following code section compiled with error. Would any kind soul point me out? Thanks a bunch!!

    public Image preloadImage(String s)
    {
    loadingTextPreload = true;
    repaint();
    Object obj = null;
    Image image1;
    Image image = Image.createImage(s);
    image1 = image;
    flag = true;
    loadingTextPreload = false;
    repaint();
    return image1;
    Exception exception;
    exception;
    Image image2;
    endOfFrames = true;
    Object obj1 = null;
    System.gc();
    image2 = null;
    flag = true;
    loadingTextPreload = false;
    repaint();
    return image2;
    Exception exception1;
    exception1;
    flag = true;
    loadingTextPreload = false;
    repaint();
    throw exception1;
    }

  2. #2
    Regular Contributor
    Join Date
    Jul 2005
    Location
    Omaha, US
    Posts
    129

    Re: Code Buster

    The code looks like decompiled one. Isn't it??

  3. #3
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Code Buster

    That code does not make sense to me. Part of the code is not reached ever (like everything after first return call). Also what are you trying to achieve with the two lines having only "exception;" in there - they cause also syntax errors?

    Hartti

  4. #4
    Registered User
    Join Date
    Aug 2003
    Posts
    43

    Re: Code Buster

    Hi prashant332

    Yes, it was decompiled and the decompiler JAD says "overlapped try statements detected. Not exception handler will be resolved."

Similar Threads

  1. Replies: 2
    Last Post: 2007-10-05, 20:40
  2. How to handle a response with HTTP status code 100 (Continue)?
    By danieldkim in forum Mobile Java General
    Replies: 5
    Last Post: 2004-01-19, 10:54
  3. nokia 7650 http gprs hang (CODE ATTACHED)
    By schm1 in forum Mobile Java General
    Replies: 6
    Last Post: 2003-12-19, 09:42
  4. Formatting code in posts to these boards
    By GerardMason in forum Mobile Java General
    Replies: 1
    Last Post: 2003-09-30, 18:28
  5. nokia 7650 http button press hang (CODE ATTACHED)
    By gwhistance in forum Mobile Java General
    Replies: 0
    Last Post: 2002-08-30, 09:17

Posting Permissions

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