Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13486
| From | markspace <-@.> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: [foo.bar.Frame] can not inherit from [java.awt.Frame] |
| Date | 2012-04-11 10:01 -0700 |
| Organization | A noiseless patient Spider |
| 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> |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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