title: Compile problems using ant and Java 1.7
body: <p>I am trying to compile a code base using ant and the javac 1.7 compiler.
  Currently, the code base compiles using the 1.6 compiler but when I switch to the 1.7 compiler, I get the following two oddities.</p>
  
  <p>1) I get a warning: "warning: x is internal proprietary API and may be removed in a future release" where x is part of an internal proprietary API yet the line in the code it references does not reference x (nor does it reference x anywhere in the given file). This happened in a few places and the line it references is in a comment block.</p>
  
  <p>2) The compile terminates with the following:</p>
  
  <blockquote>
  <pre><code>[javac] The system is out of resources.
  [javac] Consult the following stack trace for details.
  [javac] java.lang.StackOverflowError
  [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:418)
  [javac]     at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:460)
  [javac]     at com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:2053)
  [javac]     at com.sun.tools.javac.tree.JCTree$JCBinary.accept(JCTree.java:1565)
  </code></pre>
  </blockquote>
  
  <p>The relevant parameters that are in my ant script for javac are:</p>
  
  <blockquote>
  <pre><code>      source="1.6" 
          target="1.6" 
          debug="on" 
          debuglevel="lines,vars,source" 
          nowarn="on" 
          fork="yes" 
          executable="C:\Program Files\Java\jdk1.7.0_04\bin\javac"
          memorymaximumsize="1500m"
  </code></pre>
  </blockquote>
  
  <p>I tried changing the source and target versions. I also tried ajusting the memory size. It does not seem to help.</p>