[ nice-Feature Requests-1107805 ] A "throws" clause visible to Java.
"SourceForge.net" <[email protected]> Sun, 27 Feb 2005 20:53:58 -0800
| Newsgroups | gmane.comp.lang.nice.devel |
|---|---|
| Message-ID | <[email protected]> |
Feature Requests item #1107805, was opened at 2005-01-23 18:48
Message generated for change (Settings changed) made by artemgr
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=362788&aid=1107805&group_id=12788
Category: None
Group: None
Status: Open
>Priority: 1
Submitted By: Artem Gr Kozarezov (artemgr)
Assigned to: Nobody/Anonymous (nobody)
Summary: A "throws" clause visible to Java.
Initial Comment:
It is nice to program without having to write "throws
WhateverException" in Nice. But, when using Nice from
Java, there happen to be at least two inconveniences:
1) I can no longer write
... }catch( java.io.FileNotFoundException noSuchFile ){ ...
whithout being warned by the Eclipce compiler that
"Unreachable catch block for FileNotFoundException.
This exception is never thrown from the try statement
body".
And it is not even clear to me, will the Exception
still be catched, or is it wrapped into something.
2) When a Java class extends a Nice class, it can no
longer throw normal exceptions, becouse "Exception
FileNotFoundException is not compatible with throws
clause in NiceClass.niceMethod()".
The best way to deal with it is perhaps an automatic
"throws" deduction (which some Java compilers seems to
do anyway, if only to issue warnings), but I ask merely
for basic "throws" clause to be accepted by the Nice
compiler and propagated to Java-visible methods. It
will even ease to some small extent the porting of Java
source to the Nice.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=362788&aid=1107805&group_id=12788
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click