re PR java/20312 (No warning on bad method)
authorRanjit Mathew <rmathew@hotmail.com>
Thu, 10 Mar 2005 18:40:26 +0000 (18:40 +0000)
committerRanjit Mathew <rmathew@gcc.gnu.org>
Thu, 10 Mar 2005 18:40:26 +0000 (18:40 +0000)
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

gcc/java/ChangeLog
gcc/java/parse.y

index 30d033de4570f5c4c2332d5e933c2390d7b1e903..a306b27701f8fdebd92f1a33a8626a82e7809b82 100644 (file)
@@ -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
index dc70e1207e5728acde57f2c4562b5405a570d973..9569f95d0855268585ecbb8603957f29a32889b8 100644 (file)
@@ -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;