[ nice-Bugs-921206 ] byte array fill

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.lang.nice.devel
Message-ID <[email protected]>
Bugs item #921206, was opened at 2004-03-22 18:29
Message generated for change (Settings changed) made by bonniot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=921206&group_id=12788

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Isaac Gouy (igouy)
>Assigned to: Arjan Boeijink (arjanb)
Summary: byte array fill

Initial Comment:
void main(String[] args){ 
   let a = new byte[6].fill(int i => byte(i));
}


Test>java -ea -jar t.jar
Exception in thread "main" 
java.lang.IllegalArgumentException: argument type 
mismatch
        at java.lang.reflect.Array.set(Native Method)
        at nice.lang.fun.fill(array.nice:145)
Exception in thread "main" 
java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
        at java.util.ArrayList.RangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at nice.lang.fun.getSourceLocation__
(fun.nice:305)
        at nice.lang.dispatch.getSourceLocation__
(dispatch.nice)
        at 
nice.lang.fun$printStackTraceWithSourceInfo.lambda11
(fun.nice:2)
        at 
nice.lang.fun$printStackTraceWithSourceInfo.apply1
(fun.nice)
        at gnu.expr.ModuleMethod.apply1
(ModuleMethod.java:89)
        at nice.lang.fun.foreach(fun.nice:654)
        at nice.lang.dispatch.foreach(dispatch.nice)
        at nice.lang.fun.printStackTraceWithSourceInfo
(fun.nice:311)
        at 
nice.lang.dispatch.printStackTraceWithSourceInfo
(dispatch.nice)
        at nice.lang.fun.printStackTraceWithSourceInfo
(fun.nice:325)
        at 
nice.lang.dispatch.printStackTraceWithSourceInfo
(dispatch.nice)
        at nice.lang.fun.printStackTraceWithSourceInfo
(fun.nice:326)
        at 
nice.lang.dispatch.printStackTraceWithSourceInfo
(dispatch.nice)
        at test.dispatch.main(dispatch.nice)

Nice compiler version 0.9.7 (build 2004.03.19, 21:15:12 
UTC)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=921206&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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.