mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8144062: Move jdk.Version to java.lang.Runtime.Version
Reviewed-by: abuckley, alanb, forax, jjg, mchung, psandoz
This commit is contained in:
parent
cad01946df
commit
45ede707d8
2 changed files with 3 additions and 3 deletions
|
@ -61,7 +61,7 @@ import javax.lang.model.util.Elements;
|
||||||
import javax.tools.FileObject;
|
import javax.tools.FileObject;
|
||||||
import jdk.jshell.MemoryFileManager.SourceMemoryJavaFileObject;
|
import jdk.jshell.MemoryFileManager.SourceMemoryJavaFileObject;
|
||||||
import jdk.jshell.ClassTracker.ClassInfo;
|
import jdk.jshell.ClassTracker.ClassInfo;
|
||||||
import jdk.Version;
|
import java.lang.Runtime.Version;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The primary interface to the compiler API. Parsing, analysis, and
|
* The primary interface to the compiler API. Parsing, analysis, and
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8149757
|
* @bug 8149757 8144062
|
||||||
* @summary Test that StandardJavaFileManager uses the correct version of a
|
* @summary Test that StandardJavaFileManager uses the correct version of a
|
||||||
* class from a multi-release jar on classpath
|
* class from a multi-release jar on classpath
|
||||||
* @library /tools/lib
|
* @library /tools/lib
|
||||||
|
@ -164,7 +164,7 @@ public class MultiReleaseJarAwareSJFM {
|
||||||
{"", 8},
|
{"", 8},
|
||||||
{"8", 8},
|
{"8", 8},
|
||||||
{"9", 9},
|
{"9", 9},
|
||||||
{"runtime", jdk.Version.current().major()}
|
{"runtime", Runtime.version().major()}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue