8145466: javac: No line numbers in compilation error

Compiler should not use the syntax tree from enclosing contexts in diagnostics even when the enclosing contexts are consulted for method lookup.

Reviewed-by: mcimadamore
6 files changed