[ nice-Bugs-903151 ] compiler doesn't catch unimplemented Java interfaces
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.lang.nice.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #903151, was opened at 2004-02-24 02:41
Message generated for change (Comment added) made by bonniot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=903151&group_id=12788
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jason Thomas (jthomas)
Assigned to: Daniel Bonniot (bonniot)
Summary: compiler doesn't catch unimplemented Java interfaces
Initial Comment:
This compiles with no errors:
package test;
import javax.swing.table.*;
class Test implements javax.swing.table.TableModel {
}
void main(String[] args) {
TableModel t = new Test();
println(t.getValueAt(0, 0));
}
----------------------------------------------------------------------
Comment By: Daniel Bonniot (bonniot)
Date: 2004-02-24 17:13
Message:
Logged In: YES
user_id=88952
This bug has been fixed. The next release of the compiler will
include this correction. In the mean time, I encourage you try
the development version. It contains a version of the compiler
that fixes the bug. Please try it and reopen the bug-report if
you find any problem with it.
To know how to get an install the development version of the
compiler that fixes this bug, please read
http://nice.sourceforge.net/cgi-bin/twiki/view/Dev/DevelopmentVersion
Note that the bug has first been fixed in the CVS version, and it
might take one or two hours until the development version
includes the fix.
Thanks again for your help by submiting this bug report.
Daniel Bonniot
----------------------------------------------------------------------
Comment By: Daniel Bonniot (bonniot)
Date: 2004-02-24 11:01
Message:
Logged In: YES
user_id=88952
OK, I have a simple way to get this working. I am now
investigating the (compile time) performance implications.
----------------------------------------------------------------------
Comment By: Daniel Bonniot (bonniot)
Date: 2004-02-24 09:59
Message:
Logged In: YES
user_id=88952
Right, this is not implemented yet. Note that it can only
happen when implementing a Java interface. When implementing
Nice interfaces, you get the full checking.
I think this should be implemented soon, as importing Java
code is pretty important, and geting fashionable these days ;-)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=903151&group_id=12788
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click