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


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

Re: Enum in Eclipse Scrapbook

Path csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail
From markspace <markspace@nospam.nospam>
Newsgroups comp.lang.java.programmer
Subject Re: Enum in Eclipse Scrapbook
Date Tue, 26 Feb 2013 22:25:07 -0800
Organization A noiseless patient Spider
Lines 17
Message-ID <kgk8pt$ih$1@dont-email.me> (permalink)
References <515de149-3ee1-482d-a090-82ce264ed142@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Wed, 27 Feb 2013 06:23:58 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="fba3415ba68d85d643935af2f52f0b4b"; logging-data="593"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/1Xba6693Y2IXNzMLpUZvNFN9KOBSwHeQ="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3
In-Reply-To <515de149-3ee1-482d-a090-82ce264ed142@googlegroups.com>
Cancel-Lock sha1:FDCGYyG+JUoroV/wLaa8cnxa2TA=
Xref csiph.com comp.lang.java.programmer:22564

Show key headers only | View raw


On 2/26/2013 9:52 PM, Robert Mark Bram wrote:
> class A {
>      enum Month {JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC}
> }
> A a = new A();
>
> When I try to execute this I get:
>
> The member enum Month can only be defined inside a top-level class or interface

What's the name of the file this is defined in?  Is it A.java?  What 
package is this defined in?

Ditto for the other file you tried.


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


Thread

Enum in Eclipse Scrapbook Robert Mark Bram <robertmarkbram@gmail.com> - 2013-02-26 21:52 -0800
  Re: Enum in Eclipse Scrapbook markspace <markspace@nospam.nospam> - 2013-02-26 22:25 -0800
    Re: Enum in Eclipse Scrapbook Robert Mark Bram <robertmarkbram@gmail.com> - 2013-02-26 23:04 -0800
      Re: Enum in Eclipse Scrapbook Robert Mark Bram <robertmarkbram@gmail.com> - 2013-02-26 23:17 -0800
        Re: Enum in Eclipse Scrapbook markspace <markspace@nospam.nospam> - 2013-02-27 07:41 -0800
          Re: Enum in Eclipse Scrapbook Jim Janney <jjanney@shell.xmission.com> - 2013-02-27 09:53 -0700
          Re: Enum in Eclipse Scrapbook Robert Mark Bram <robertmarkbram@gmail.com> - 2013-02-27 12:12 -0800
            Re: Enum in Eclipse Scrapbook Lew <lewbloch@gmail.com> - 2013-02-27 12:25 -0800
              Re: Enum in Eclipse Scrapbook lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-28 09:02 +0000
                Re: Enum in Eclipse Scrapbook Arne Vajhøj <arne@vajhoej.dk> - 2013-02-28 08:28 -0500
                Re: Enum in Eclipse Scrapbook lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-28 15:24 +0000
                Re: Enum in Eclipse Scrapbook Arne Vajhøj <arne@vajhoej.dk> - 2013-02-28 16:48 -0500
                Re: Enum in Eclipse Scrapbook Lew <lewbloch@gmail.com> - 2013-02-28 14:09 -0800
                Re: Enum in Eclipse Scrapbook Arne Vajhøj <arne@vajhoej.dk> - 2013-03-03 21:24 -0500
                Re: Enum in Eclipse Scrapbook Lew <lewbloch@gmail.com> - 2013-03-04 11:36 -0800
                Re: Enum in Eclipse Scrapbook Arne Vajhøj <arne@vajhoej.dk> - 2013-03-07 14:19 -0500
                Re: Enum in Eclipse Scrapbook Lew <lewbloch@gmail.com> - 2013-03-07 13:34 -0800
    Re: Enum in Eclipse Scrapbook Lew <lewbloch@gmail.com> - 2013-02-27 12:24 -0800
  Re: Enum in Eclipse Scrapbook Robert Mark Bram <robertmarkbram@gmail.com> - 2013-02-26 23:28 -0800
  Re: Enum in Eclipse Scrapbook lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-27 09:50 +0000
    Re: Enum in Eclipse Scrapbook Robert Mark Bram <robertmarkbram@gmail.com> - 2013-02-27 03:43 -0800
      Re: Enum in Eclipse Scrapbook lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-27 12:02 +0000
  Re: Enum in Eclipse Scrapbook Roedy Green <see_website@mindprod.com.invalid> - 2013-02-28 07:43 -0800
    Re: Enum in Eclipse Scrapbook Arne Vajhøj <arne@vajhoej.dk> - 2013-02-28 16:57 -0500

csiph-web