Compilation problem
Rémi Forax
forax at univ-mlv.fr
Fri Mar 4 15:48:10 PST 2011
Package java.nio.files changes in b132.
The code of the compiler was updated accordingly.
But you use a VM created by Stephen from a workspace
which is older than b132.
Solutions:
- gently ask Stephen to build a new version based on b132 sources.
- get a b132, extract package java.nio.files and put it
in the boostrap class (and pray that there is no VM changes).
Rémi
On 03/05/2011 12:37 AM, Howard Lovatt wrote:
> Hi,
>
> I am compiling the latest version of the SDK from the Mercurial
> repository and I get the following errors:
>
> build-bootstrap-javac:
> [javac] Compiling 29 source files to
> /Users/lov080/Downloads/MLVM/JDK7/langtools/build/bootstrap/classes
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/JavacPathFileManager.java:326:
> cannot find symbol
> [javac] if (!Files.exists(path))
> [javac] ^
> [javac] symbol: method exists(Path)
> [javac] location: class Files
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/JavacPathFileManager.java:341:
> cannot find symbol
> [javac] if (!Files.exists(packageDir))
> [javac] ^
> [javac] symbol: method exists(Path)
> [javac] location: class Files
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/JavacPathFileManager.java:376:
> cannot find symbol
> [javac] Path name = dir.getFileName();
> [javac] ^
> [javac] symbol: method getFileName()
> [javac] location: class Path
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/JavacPathFileManager.java:385:
> cannot find symbol
> [javac] if (attrs.isRegularFile()&&
> kinds.contains(getKind(file.getFileName().toString()))) {
> [javac]
> ^
> [javac] symbol: method getFileName()
> [javac] location: class Path
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/JavacPathFileManager.java:431:
> cannot find symbol
> [javac] if (Files.exists(f))
> [javac] ^
> [javac] symbol: method exists(Path)
> [javac] location: class Files
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/JavacPathFileManager.java:437:
> cannot find symbol
> [javac] if (Files.exists(file))
> [javac] ^
> [javac] symbol: method exists(Path)
> [javac] location: class Files
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/JavacPathFileManager.java:504:
> no suitable method found for newFileSystem(Path,<null>)
> [javac] fs = FileSystems.newFileSystem(p, null);
> [javac] ^
> [javac] method
> FileSystems.newFileSystem(FileRef,Map<String,?>,ClassLoader) is not
> applicable
> [javac] (actual and formal argument lists differ in length)
> [javac] method
> FileSystems.newFileSystem(URI,Map<String,?>,ClassLoader) is not
> applicable
> [javac] (actual and formal argument lists differ in length)
> [javac] method FileSystems.newFileSystem(URI,Map<String,?>) is
> not applicable
> [javac] (actual argument Path cannot be converted to URI by
> method invocation conversion)
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/JavacPathFileManager.java:530:
> cannot find symbol
> [javac] BasicFileAttributes attrs =
> Files.readAttributes(path, BasicFileAttributes.class);
> [javac] ^
> [javac] symbol: method readAttributes(Path,Class<BasicFileAttributes>)
> [javac] location: class Files
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/PathFileObject.java:155:
> cannot find symbol
> [javac] return
> BaseFileManager.getKind(path.getFileName().toString());
> [javac] ^
> [javac] symbol: method getFileName()
> [javac] location: class Path
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/PathFileObject.java:166:
> cannot find symbol
> [javac] String pn = path.getFileName().toString();
> [javac] ^
> [javac] symbol: method getFileName()
> [javac] location: class Path
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/PathFileObject.java:173:
> cannot find symbol
> [javac] return
> path.toRealPath(false).getFileName().toString().equals(sn);
> [javac] ^
> [javac] symbol: method getFileName()
> [javac] location: class Path
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/PathFileObject.java:202:
> cannot find symbol
> [javac] return Files.newInputStream(path);
> [javac] ^
> [javac] symbol: method newInputStream(Path)
> [javac] location: class Files
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/PathFileObject.java:208:
> cannot find symbol
> [javac] return Files.newOutputStream(path);
> [javac] ^
> [javac] symbol: method newOutputStream(Path)
> [javac] location: class Files
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/PathFileObject.java:244:
> cannot find symbol
> [javac] return new
> OutputStreamWriter(Files.newOutputStream(path),
> fileManager.getEncodingName());
> [javac] ^
> [javac] symbol: method newOutputStream(Path)
> [javac] location: class Files
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/PathFileObject.java:250:
> cannot find symbol
> [javac] return Files.getLastModifiedTime(path).toMillis();
> [javac] ^
> [javac] symbol: method getLastModifiedTime(Path)
> [javac] location: class Files
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/PathFileObject.java:259:
> cannot find symbol
> [javac] Files.delete(path);
> [javac] ^
> [javac] symbol: method delete(Path)
> [javac] location: class Files
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/PathFileObject.java:268:
> cannot find symbol
> [javac] return Files.isSameFile(path, other.path);
> [javac] ^
> [javac] symbol: method isSameFile(Path,Path)
> [javac] location: class Files
> [javac] /Users/lov080/Downloads/MLVM/JDK7/langtools/src/share/classes/com/sun/tools/javac/nio/PathFileObject.java:297:
> cannot find symbol
> [javac] return Files.size(path);
> [javac] ^
> [javac] symbol: method size(Path)
> [javac] location: class Files
> [javac] 18 errors
>
> BUILD FAILED
> /Users/lov080/Downloads/MLVM/JDK7/langtools/make/build.xml:452: The
> following error occurred while executing this line:
> /Users/lov080/Downloads/MLVM/JDK7/langtools/make/build.xml:816:
> Compile failed; see the compiler error output for details.
>
> Total time: 14 seconds
>
>
> The JDK that I using for the compilation is from Stephen Bannasch and
> dated 2011_01_11:
>
> java (JVM) Version:
> openjdk version "1.7.0-internal-fastdebug"
> OpenJDK Runtime Environment (build
> 1.7.0-internal-fastdebug-stephen_2011_01_11_21_45-b00)
> OpenJDK 64-Bit Server VM (build 20.0-b03-fastdebug, mixed mode)
>
> I also get the same errors with the 2011_02_24 build from Stephen. The
> version of the SDK I am attempting to build is:
>
> javac (SDK) Version:
> changeset: 932:5aeda537bf98
> tag: tip
> user: mcimadamore
> date: Tue Mar 01 17:48:13 2011 +0000
> summary: Fix: wrong subtyping implementation for disjunctive types.
>
> Looks like File might have gone missing!
>
> Thanks for posting the regular improvements.
>
> -- Howard.
>
More information about the lambda-dev
mailing list