Why won't the following compile?

FileFilter ff = new FileNameExtensionFilter("...");
File[] files = new File("...").listFiles(ff);

Says that there is no listFiles(FileFilter) method of File, but the documentation begs to differ. Using JDK 6 / Eclipse 7.