-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b04
-
generic
-
generic
-
Verified
Elements.getEnclosedElements(...) throws com.sun.tools.javac.code.ClassFinder$BadClassFile, a subtype of CompletionError, which in turn is subtype of RuntimeException, an unchecked exception. This is a surprise to the clients of these APIs, and it is not possible to realistically handle this without resorting to accessing javac internal API.
The APIs when it encounters CompletionError or BadClassFile should return back an ErrorType or it should declare an exception in the API contract, that can be caught and handled.
This is a problem for javadoc please see JDK-8187422
The APIs when it encounters CompletionError or BadClassFile should return back an ErrorType or it should declare an exception in the API contract, that can be caught and handled.
This is a problem for javadoc please see JDK-8187422
- blocks
-
JDK-8187422 javadoc errors if invalid source files coexist with documented source files
-
- Open
-
- csr for
-
JDK-8198611 javax.lang.model APIs throws CompletionFailure or a subtype of CompletionFailure.
-
- Closed
-
- relates to
-
JDK-8177436 Elements#getTypeElement ignores CompletionFailure, causing CCE in TransTypes#visitApply
-
- Closed
-
-
JDK-8190054 Provide guidance on handling of erroneous program constructs
-
- Open
-