[Java Spec Report] Re: reference to nonstatic type from static context

"dnoyeB" <[email protected]> Thu, 15 Apr 2004 13:27:23 -0000
Newsgroups gmane.comp.java.spec-report
Message-ID <[email protected]>
--- In [email protected], "Neal Gafter"
<Neal.Gafter@s...> wrote:
> I know of no compilers that properly implement this JLS rule:
> 
> // JLS 8.5.2, 2nd paragraph: It is a compile-time error if a static
> // class contains a usage of a non-static member of an enclosing
> // class.
> class A {
>     class B {}
>     static class C {
>         B b; // error
>     }
> }

1.4.1 implements some new changes wrt/ static classes and references.
 I put in a bug report over a class that wouldnt compile, 5016263.



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/5cFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this mailing list, send an email to:
[email protected]
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/java-spec-report/

<*> To unsubscribe from this group, send an email to:
     [email protected]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/