Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #13486

Re: [foo.bar.Frame] can not inherit from [java.awt.Frame]

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: [foo.bar.Frame] can not inherit from [java.awt.Frame]
Date Wed, 11 Apr 2012 10:01:39 -0700
Organization A noiseless patient Spider
Lines 19
Message-ID <jm4ddl$aqn$1@dont-email.me> (permalink)
References <8d7bedc4-30a8-4dc4-97b6-9ddaafc2e16a@l4g2000vbt.googlegroups.com> <jm47nd$6en$1@dont-email.me> <77CdnRMKBtckLxjSnZ2dnUVZ_tGdnZ2d@earthlink.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Wed, 11 Apr 2012 17:01:41 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="QNqT5u6Ryx/DB+LpnoCWdQ"; logging-data="11095"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19GOgJSD1W4o+7eNNVbu0DUIKdzqvw3hrk="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
In-Reply-To <77CdnRMKBtckLxjSnZ2dnUVZ_tGdnZ2d@earthlink.com>
Cancel-Lock sha1:jHz2o8XI89ejBq4wwLlNn6pmhjk=
Xref csiph.com comp.lang.java.programmer:13486

Show key headers only | View raw


On 4/11/2012 9:34 AM, Patricia Shanahan wrote:

> I think a better solution would be to rename foo.bar.Frame. If it did
> not have some functional difference from java.awt.Frame, it would not
> exist. Presumably, it is Frame specialized in some way, and its name
> should indicate that specialization.


Well, its full name "foo.bar.Frame" should indicate its specialization. 
  A better name like com.application.main.Frame would be a more likely 
choice if this weren't a quick example on the internet.  In general I 
don't have a problem with using common words as class names in different 
packages.  It actually adds to clarity in many cases.

OTOH, if the actual use of foo.bar.Frame and java.awt.Frame gets to be a 
pain to deal with, then it certainly should be renamed.  Confusion or 
even just convenience is a sufficient reason for refactoring the name of 
a class.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[foo.bar.Frame] can not inherit from [java.awt.Frame] Maciej Labanowicz <m.labanowicz@gmail.com> - 2012-04-11 04:56 -0700
  Re: can not inherit from [java.awt.Frame] Paul Cager <paul.cager@googlemail.com> - 2012-04-11 05:51 -0700
    Re: can not inherit from [java.awt.Frame] Lew <noone@lewscanon.com> - 2012-04-11 08:13 -0700
      Re: can not inherit from [java.awt.Frame] Paul Cager <paul.cager@googlemail.com> - 2012-04-11 09:37 -0700
  Re: [foo.bar.Frame] can not inherit from [java.awt.Frame] Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-04-11 12:59 +0000
  Re: [foo.bar.Frame] can not inherit from [java.awt.Frame] markspace <-@.> - 2012-04-11 08:24 -0700
    Re: [foo.bar.Frame] can not inherit from [java.awt.Frame] Patricia Shanahan <pats@acm.org> - 2012-04-11 09:34 -0700
      Re: [foo.bar.Frame] can not inherit from [java.awt.Frame] markspace <-@.> - 2012-04-11 10:01 -0700
  Re: [foo.bar.Frame] can not inherit from [java.awt.Frame] Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-04-11 11:18 -0700
    Re: [foo.bar.Frame] can not inherit from [java.awt.Frame] Lew <lewbloch@gmail.com> - 2012-04-11 12:18 -0700

csiph-web