🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Read please

#15400
From: Rich Wilkman
Date: Wed, 16 Jun 1999 00:00
86 lines
3154 bytes
Josh:

This has already been handled in the ng.  I think the only thing "wrong"
was the unnecessary re-implementation of an interface that was already
implemented by a class higher on the hierarchy.

-Rich

"Josh Fletcher (borland.com)" wrote:
> 
> 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.

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Senior Quality Assurance Engineer
Borland JBuilder Team

If you see something that looks like an opinion up there,
it's mine and mine alone.

Mail sent to me from the newsgroups won't bounce but will
be ignored.  If I have time, I'll respond, but you  have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <37681CB3.6B53E71D@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37681B7A.A31F5643@borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,ca6e3bdb41ee3e6e
X-Google-Attributes: gidf74b3,public
From: Rich Wilkman <rwilkman@inprise.com>
Subject: Re: Read please
Date: 1999/06/16
Message-ID: <37681CB3.6B53E71D@inprise.com>
X-Deja-AN: 490428025
Content-Transfer-Encoding: 7bit
References: <37681B7A.A31F5643@borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language