This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: refering to inner classes from imports doesn't work


>
>
>public class A
>{
>   public static X createSomething ()
>   {
>     return new X();
>   }
>
>   public class X
>   {
>      public void someMethod ()
>      {
>        return;
>      }
>   }
>}
>
How can the *static* method createSomething() create the *non-static* 
class A?
Cedric



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]