Community
Participate
Working Groups
N20050523-0010 The javadoc of ASTParser#setProject(..) mentions that this method also calls ASTParser#setCompilerOptions(..). There should also be a note in the javadoc of ASTParser#setCompilerOptions(..) that mentions that setProject(..) and two of the setSource(..) methods reset the compiler options.
Clarified spec as follows: /** * Sets the compiler options to be used when parsing. * <p> * The compiler options default to {@link JavaCore#getOptions()}. * </p> * <p> * Note that {@link #setSource(IClassFile)}, * {@link #setSource(ICompilationUnit)}, * and {@link #setProject(IJavaProject)} reset the compiler options * based on the Java project. * </p> * * @param options the table of options (key type: <code>String</code>; * value type: <code>String</code>), or <code>null</code> * to set it back to the default */ public void setCompilerOptions(Map options)
Verified in I20050526-2000