Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13480
| From | Lew <noone@lewscanon.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: can not inherit from [java.awt.Frame] |
| Date | 2012-04-11 08:13 -0700 |
| Organization | albasani.net |
| Message-ID | <jm472q$9g4$1@news.albasani.net> (permalink) |
| References | <8d7bedc4-30a8-4dc4-97b6-9ddaafc2e16a@l4g2000vbt.googlegroups.com> <f10bbb58-5fb3-43c1-aea4-452d7f782f05@h5g2000vbx.googlegroups.com> |
On 04/11/2012 05:51 AM, Paul Cager wrote:
> On Apr 11, 12:56 pm, Maciej Labanowicz<m.labanow...@gmail.com> wrote:
>> /> javac Frame.java
>> Frame.java:2: error: foo.bar.Frame is already defined in this
>> compilation unit
>> import java.awt.Frame;
>> ^
>> 1 error
>
> That should work. Are you sure you have shown us the whole file?
No, it shouldn't work.
> One problem that would lead to these symptoms is if you had
> accidentally duplicated the class declaration in the file, such as
> (untested):
>
> package foo;
>
> public class Frame {
> // Lots of stuff
> }
>
> public class Frame {
> // Lots of stuff
> }
>
> If that's not the case, which compiler are you using?
He's using a standards-conforming compiler, which is all that matters in this
case.
--
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
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