-
Bug
-
Resolution: Fixed
-
P3
-
9-repo-jigsaw
Some code (and tests), is doing a sequence of code like this:
{code}
javax.tools.JavaCompiler tool = ToolProvider.getSystemJavaCompiler();
JavacTaskImpl task = (JavacTaskImpl)tool.getTask(null, null, null, null, null, null);
JavaCompiler compiler = JavaCompiler.instance(task.getContext());
compiler.resolveIdent("T1");
{code}
Or:
{code}
JavaCompiler tool = ToolProvider.getSystemJavaCompiler();
JavacTask javac = (JavacTask)tool.getTask(null, fm, null, null, null, null);
Elements elements = javac.getElements();
TypeElement elem = elements.getTypeElement(type);
{code}
This used to work in JDK 8, but is not working under Jake.
This causes failures of several tests:
tools/javac/6330997/T6330997.java
tools/javac/api/TestResolveIdent.java
And also affects some other tests:
tools/javac/importscope/dependencies/DependenciesTest.java
tools/javac/processing/model/testgetallmembers/Main.java
{code}
javax.tools.JavaCompiler tool = ToolProvider.getSystemJavaCompiler();
JavacTaskImpl task = (JavacTaskImpl)tool.getTask(null, null, null, null, null, null);
JavaCompiler compiler = JavaCompiler.instance(task.getContext());
compiler.resolveIdent("T1");
{code}
Or:
{code}
JavaCompiler tool = ToolProvider.getSystemJavaCompiler();
JavacTask javac = (JavacTask)tool.getTask(null, fm, null, null, null, null);
Elements elements = javac.getElements();
TypeElement elem = elements.getTypeElement(type);
{code}
This used to work in JDK 8, but is not working under Jake.
This causes failures of several tests:
tools/javac/6330997/T6330997.java
tools/javac/api/TestResolveIdent.java
And also affects some other tests:
tools/javac/importscope/dependencies/DependenciesTest.java
tools/javac/processing/model/testgetallmembers/Main.java
- relates to
-
JDK-8150031 Fix tools/javac/importscope/dependencies/DependenciesTest.java
- Resolved
-
JDK-8150032 Fix tools/javac/processing/model/testgetallmembers/Main.java
- Resolved