Results 1 to 2 of 2
  1. #1
    bje98f is offline Member
    Join Date
    Apr 2009
    Posts
    1
    Rep Power
    0

    Default why wont it compile

    import com.topcmm.core.util.*;
    import com.topcmm.jchat.metadata.DefaultXML;
    import java.util.concurrent.ConcurrentHashMap;
    import org.apache.log4j.Logger;

    public class R extends cj
    {

    public R(aQ aq)
    {
    super(aq);
    a_java_util_concurrent_ConcurrentHashMap_fld = new ConcurrentHashMap();
    b = new ConcurrentHashMap();
    c = new ConcurrentHashMap();
    d = new ConcurrentHashMap();
    }

    protected final void a()
    {
    }

    public final fb a(String s1)
    {
    fb fb1 = a().b(s1);
    fb fb2 = fb1;
    R r = this;
    boolean flag = false;
    if(r.a(DefaultXML.f(), fb2, false))
    flag = true;
    if(flag)
    a(s1, fb1);
    return fb1;
    }

    public final boolean a(String s1, fb fb1)
    {
    return a().b(s1, fb1.a());
    }

    public final fb a(int i, String s1, boolean flag)
    {
    Object obj = null;
    if(s1.equals("*"))
    s1 = "en";
    R r;
    if(flag)
    if(i == 1)
    obj = (fb)(r = this).b.get(s1);
    else
    if(i == 2)
    obj = (fb)(r = this).c.get(s1);
    else
    if(i == 3)
    obj = (fb)(r = this).d.get(s1);
    else
    obj = (fb)(r = this).a_java_util_concurrent_ConcurrentHashMap_fld .get(s1);
    if(obj == null)
    try
    {
    if((obj = a(s1)) != null && (obj = b(((fb) (obj)))) != null)
    {
    if((flag = ((fb) (obj)).a(a("MAIN")).a()) != null)
    {
    flag.a(a("LANG"));
    R r1;
    (r1 = this).a_java_util_concurrent_ConcurrentHashMap_fld .put(s1, flag);
    }
    fb fb1;
    if((fb1 = ((fb) (obj)).a(a("ADMIN")).a()) != null)
    {
    fb1.a(a("LANG"));
    R r2;
    (r2 = this).b.put(s1, fb1);
    }
    fb fb2;
    if((fb2 = ((fb) (obj)).a(a("VISUAL-AVATAR-CHAT")).a()) != null)
    {
    fb2.a(a("LANG"));
    R r3;
    (r3 = this).c.put(s1, fb2);
    }
    if((obj = ((fb) (obj)).a(a("CHAT-ROOM-REMOTE-CONTROLLER-MSN-EDITION")).a()) != null)
    {
    ((fb) (obj)).a(a("LANG"));
    R r4;
    (r4 = this).d.put(s1, obj);
    }
    if(i == 1)
    obj = fb1;
    else
    if(i == 2)
    obj = fb2;
    else
    if(i == 3)
    obj = obj;
    else
    obj = flag;
    }
    }
    // Misplaced declaration of an exception variable
    catch(boolean flag)
    {
    obj = null;
    f.a().a(new s(new n(a_org_apache_log4j_Logger_static_fld), (new StringBuilder("load language_")).append(s1).append("configuration error: ").append(flag).toString(), 2));
    }
    return ((fb) (obj));
    }

    public final ConcurrentHashMap a()
    {
    return a_java_util_concurrent_ConcurrentHashMap_fld;
    }

    private static final Logger a_org_apache_log4j_Logger_static_fld = Logger.getLogger(R);
    private ConcurrentHashMap a_java_util_concurrent_ConcurrentHashMap_fld;
    private ConcurrentHashMap b;
    private ConcurrentHashMap c;
    private ConcurrentHashMap d;

    }

  2. #2
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    You can only catch Throwable objects (typically subclasses of Exception), and only when they are throw from a try block.

    Lesson: Exceptions (The Java™ Tutorials > Essential Classes)
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

Similar Threads

  1. doesn't compile?!
    By jon80 in forum New To Java
    Replies: 8
    Last Post: 06-14-2008, 05:42 PM
  2. save will work but load wont?!?!
    By Sticks_ll in forum New To Java
    Replies: 1
    Last Post: 06-12-2008, 04:19 AM
  3. [SOLVED] Last line in JTextArea wont display
    By Chris.Brown.SPE in forum Advanced Java
    Replies: 5
    Last Post: 04-11-2008, 01:52 PM
  4. Not able to compile
    By bugger in forum New To Java
    Replies: 2
    Last Post: 01-09-2008, 10:13 PM
  5. simple problem - code wont compile
    By dirtycash in forum New To Java
    Replies: 1
    Last Post: 11-20-2007, 05:49 PM

Posting Permissions

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