🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15399

Read please

#15399
From: Josh Fletcher (borland.com)
Date: Wed, 16 Jun 1999 00:00
61 lines
2263 bytes
Hi y'all,

Trying to process a bug report and was wondering if some of you Java
Gurus could look at this code snippet that the user submitted.  Is there
anything inherently wrong with it (besides the fact that the parameter
to System.out.println is invalid)? Description follows.

=====
package test;
import javax.swing.tree.*;

interface TENode extends MutableTreeNode, Cloneable
{
}

abstract class AbstractTENode extends DefaultMutableTreeNode implements
TENode
{
}

public class MyClass1 extends DefaultMutableTreeNode //AbstractTENode
/* If MyClass1 extends DefaultMutableTreeNode the data members from
DefaultMutableTreeNode can be seen in the debugger.  If, instead,
MyClass1 extends AbstractTENode, the members can not be seen.  The
question is, should they be visible? */
{
    public MyClass1()
    {
    }

    public static void main(String[] args)
    {
        MyClass1 myclass1 = new MyClass1();
        System.out.println("myclass1:" + myclass1); /* breakpoint */
    }
}
=====

Note the comment under MyClass1.  This describes what the user wants to
do.  The question I have is:

1. Should this work, in terms of the debugger?  IOW would Java allow it,
and therefore if the debugger doesn't we should fix it?

2. In general, it seems that using and abstract class to implement
another abstract class (the interface) is a little wierd.  It's as if he
is trying to get multiple inheritance or something.  Am I wrong here?

Thanks for any help!!!

Josh

-- 
Josh Fletcher
JBuilder Developer Support

jfletcher@borland.com
http://www.borland.com/devsupport/disclaim.html

Mail sent to me from the newsgroups won't bounce but will
be ignored.  Please confine your posts to the newsgroups.
Technical Details
Message-ID: <37681B7A.A31F5643@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,ca6e3bdb41ee3e6e,start
X-Google-Attributes: gidf74b3,public
From: "Josh Fletcher (borland.com)" <jfletcher@borland.com>
Subject: Read please
Date: 1999/06/16
Message-ID: <37681B7A.A31F5643@borland.com>
X-Deja-AN: 490424889
Content-Transfer-Encoding: 7bit
Organization: borland.com Software
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language