diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 30d033de4570..a306b27701f8 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,10 @@ +2005-03-10 Ranjit Mathew + + 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'. + 2005-03-09 Ranjit Mathew PR java/20338 diff --git a/gcc/java/parse.y b/gcc/java/parse.y index dc70e1207e57..9569f95d0855 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;