diff options
author | rmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-10 18:40:26 +0000 |
---|---|---|
committer | rmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-10 18:40:26 +0000 |
commit | b0353cc9b233e2b5c0808260714c678d1170dd0a (patch) | |
tree | cebff802bb1c45e4b20e3bd081642ce4c7233174 /gcc/java/parse.y | |
parent | 2061ba3c5fcde447a9e1fc250f5b23e0bc49bf34 (diff) | |
download | gcc-b0353cc9b233e2b5c0808260714c678d1170dd0a.tar.gz |
PR java/20312
* parse.y (checks_throws_clauses): Check exceptions list even when
the base class does not come from a source file being compiled.
(java_complete_lhs): Remove unused variable 'wfl'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96251 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r-- | gcc/java/parse.y | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y index dc70e1207e5..9569f95d085 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -6702,10 +6702,6 @@ check_throws_clauses (tree method, tree method_wfl, tree found) { tree mthrows; - /* Can't check these things with class loaded from bytecode. FIXME */ - if (!CLASS_FROM_SOURCE_P (DECL_CONTEXT (found))) - return; - for (mthrows = DECL_FUNCTION_THROWS (method); mthrows; mthrows = TREE_CHAIN (mthrows)) { @@ -11911,7 +11907,6 @@ java_complete_lhs (tree node) if (!EXPR_WFL_NODE (node) /* Or a PRIMARY flag ? */ || TREE_CODE (EXPR_WFL_NODE (node)) == IDENTIFIER_NODE) { - tree wfl = node; node = resolve_expression_name (node, NULL); if (node == error_mark_node) return node; |