-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
23
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
visitModuleImport in com.sun.tools.javac.tree.TreeScanner has not been overriden, so defaulted to Visitor::visitModuleImport, which forwards to Visitor::visitTree, which is also not overriden, and, therefore, threw AssertionError.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile code with module import in it
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
normal compilation
ACTUAL -
internal compiler error (AssertionError is thrown)
---------- BEGIN SOURCE ----------
package io.avaje.modules.example;
import module java.base;
import java.util.List;
public class Main {
public static void main(String[] args) {
List.of();
}
}
---------- END SOURCE ----------
FREQUENCY : always
visitModuleImport in com.sun.tools.javac.tree.TreeScanner has not been overriden, so defaulted to Visitor::visitModuleImport, which forwards to Visitor::visitTree, which is also not overriden, and, therefore, threw AssertionError.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile code with module import in it
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
normal compilation
ACTUAL -
internal compiler error (AssertionError is thrown)
---------- BEGIN SOURCE ----------
package io.avaje.modules.example;
import module java.base;
import java.util.List;
public class Main {
public static void main(String[] args) {
List.of();
}
}
---------- END SOURCE ----------
FREQUENCY : always
- duplicates
-
JDK-8332497 javac prints an AssertionError when annotation processing runs on program with module imports
-
- Resolved
-