[Java Spec Report] Static contexts and local classes?

"Roly Perera" <[email protected]> Thu, 15 Apr 2004 14:12:31 +0100
Newsgroups gmane.comp.java.spec-report
Organization Ergnosis Ltd
Message-ID <[email protected]>
Hi,

Is the following well-formed?

class Test2<A, B>
{
}
 
public class Test
{
    public static class Y<T, U>
    {
        void f ()
        {
            class X extends Test2<T, U> // static context?
            {
            }
        }
    }
}

(javac complains that the use of T and U above occur in a static
context, but I'm not sure that this is a static context.)

Roly

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.590 / Virus Database: 373 - Release Date: 16/02/2004
 



------------------------ 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/