This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/20312] No warning on bad method
- From: "bothner at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Apr 2005 09:05:17 -0000
- Subject: [Bug java/20312] No warning on bad method
- References: <20050304081857.20312.davidw@dedasys.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bothner at gcc dot gnu dot org 2005-04-21 09:05 -------
This patch can cause an ICE when the super-class is byte-compiled.
If a byte-compiled method M in a super-class throws exception X,
we try to emit an erroneous error message that M can't throw X
(because we don't analyze the bytecode). Worse, because M
doesn't have DECL_FUNCTION_WFL set, we get an ICE in parse_error_context.
The problem is check_interface_throws_clauses, which seems to be doing way
too much work ... it should be not be checking that
"The exception must be a subclass of an exception thrown" in super-classes.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20312