[ nice-Bugs-904327 ] runtime Argument #0 to 'vend' has wrong type

"SourceForge.net" <[email protected]> Fri, 11 Jun 2004 08:58:23 -0700
Newsgroups gmane.comp.lang.nice.devel
Message-ID <[email protected]>
Bugs item #904327, was opened at 2004-02-25 17:13
Message generated for change (Comment added) made by bonniot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=904327&group_id=12788

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 3
Submitted By: Isaac Gouy (igouy)
>Assigned to: Daniel Bonniot (bonniot)
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: Daniel Bonniot (bonniot)
Date: 2004-06-11 17:58

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: Isaac Gouy (igouy)
Date: 2004-03-04 18: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 17: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 the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504