java/3417: Downcast on integral types.
apbianco@cygnus.com
apbianco@cygnus.com
Mon Jun 25 16:46:00 GMT 2001
>Number: 3417
>Category: java
>Synopsis: Downcast on integral types.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Mon Jun 25 16:46:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Alex
>Release: all.
>Organization:
>Environment:
all.
>Description:
java/decl.c:build_result_decl widen integral return type
to int_type_node, for better cooperation with C++. It
prevents jc1 from catching the error in this code:
class Foobar { char func (int i) { return i; } }
>How-To-Repeat:
Compile class Foobar.
>Fix:
Not yet.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Java-prs
mailing list