[ nice-Bugs-904327 ] runtime Argument #0 to 'vend' has wrong type
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.lang.nice.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #904327, was opened at 2004-02-25 08:13
Message generated for change (Comment added) made by igouy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=904327&group_id=12788
Category: None
Group: None
Status: Open
Resolution: None
>Priority: 3
Submitted By: Isaac Gouy (igouy)
Assigned to: Nobody/Anonymous (nobody)
Summary: runtime Argument #0 to 'vend' has wrong type
Initial Comment:
Three packages:
//---------------------------
package vendor;
public class Vendor {}
//---------------------------
package test;
import vendor;
public interface ITest {}
public void vend(ITest i){ println("ITest"); }
class vendor.Vendor implements ITest;
//---------------------------
package main;
import vendor;
import test;
void main(String[] args){
Vendor a = new Vendor();
a.vend();
}
//---------------------------
>nicec -R -a t.jar main
nice.lang: parsing
vendor: parsing
test: parsing
main: parsing
vendor: typechecking
vendor: generating code
test: typechecking
test: generating code
main: typechecking
main: generating code
main: linking
main: writing in archive
vendor: writing in archive
nice.lang: writing in archive
test: writing in archive
>java -jar t.jar
Exception in thread "main" Argument #0 to 'vend' has
wrong type
at gnu.mapping.WrongType.make
(WrongType.java:56)
at main.fun.main(main.nice:8)
at main.dispatch.main(dispatch.nice)
Nice compiler version 0.9.7 (build 2004.02.25, 13:20:37
UTC)
----------------------------------------------------------------------
>Comment By: Isaac Gouy (igouy)
Date: 2004-03-04 09:15
Message:
Logged In: YES
user_id=536291
>Please adjust the priority field of this report depending on
>how useful that feature would be for you.
Of course, everything is high priority - it's just that
somethings are higher priority than others ;-)
----------------------------------------------------------------------
Comment By: Daniel Bonniot (bonniot)
Date: 2004-03-04 08:01
Message:
Logged In: YES
user_id=88952
Right, having an imported class implement a non-abstract
interface is not supported at the moment. Please adjust the
priority field of this report depending on how useful that
feature would be for you.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=904327&group_id=12788
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click