title: Cannot compile inner class source files, resulting in error?
body: <p>The seem not to be able to compile the following main method:</p>
  
  <pre><code>public class MainMethod {
  
      public static void main(String []args){
  
          InnerizationClass outer = new InnerizationClass(); 
          InnerizationClass.StaticInnerClass inner = outer.StaticInnerClass(); //#1
          System.out.println(inner.getOuterClassVar());
          System.out.println(new InnerizationClass().locInnrMeth());
      }
  }
  </code></pre>
  
  <p>And this is the InnerizationClass class:</p>
  
  <pre><code>public class InnerizationClass {
  
      String outerClassVar = "Outer Catism";
      static String outerClassVarStat = "Outer Static Catism";
  
      public static class StaticInnerClass{
  
          String innerClassVar = "Catism";
  
          public String getInnerClassVar(){
  
              return this.innerClassVar;
          }
  
          public String getOuterClassVar(){
  
              return InnerizationClass.outerClassVarStat;
          }
      }
  
      public String locInnrMeth(){
  
          class MethodLocalInnerClass{
  
              String methodLocalInrCls = "Method Local Catism";
  
              void printInner(){
  
                  System.out.println(InnerizationClass.this.outerClassVar);
              }
  
          }
  
          return new MethodLocalInnerClass().methodLocalInrCls;   
  
      }
  
      public String getStaticOuterVar(){return null;}
  }
  </code></pre>
  
  <p>I am getting the following error from #1 from the main method:</p>
  
  <pre><code>MainMethod.java:6 qualified new of static class
  InnerizationClass.StaticInnerClass inner = outer.new StaticInnerClass();
  1 error;
  </code></pre>