diff options
author | Ranjit Mathew <rmathew@hotmail.com> | 2005-03-10 18:40:26 +0000 |
---|---|---|
committer | Ranjit Mathew <rmathew@gcc.gnu.org> | 2005-03-10 18:40:26 +0000 |
commit | 2743ba1c484ef25dcaf096a9083355667b5c1362 (patch) | |
tree | cebff802bb1c45e4b20e3bd081642ce4c7233174 /gcc | |
parent | 170082880ffc359f3b22cb63a4f3cf37c56ff4db (diff) | |
download | gcc-2743ba1c484ef25dcaf096a9083355667b5c1362.zip gcc-2743ba1c484ef25dcaf096a9083355667b5c1362.tar.gz gcc-2743ba1c484ef25dcaf096a9083355667b5c1362.tar.bz2 |
re PR java/20312 (No warning on bad method)
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'.
From-SVN: r96251
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/java/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/java/parse.y | 5 |
2 files changed, 7 insertions, 5 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 30d033d..a306b27 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,10 @@ +2005-03-10 Ranjit Mathew <rmathew@hotmail.com> + + 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 <rmathew@hotmail.com> PR java/20338 diff --git a/gcc/java/parse.y b/gcc/java/parse.y index dc70e12..9569f95 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; |