Blocks :
|
|
CSR :
|
|
Relates :
|
|
Relates :
|
JDK-8199398 :
|
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
|