[ nice-Bugs-921206 ] byte array fill

"SourceForge.net" <[email protected]> Sun, 27 Jun 2004 13:37:46 -0700
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 (Comment added) made by arjanb
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=921206&group_id=12788

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
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)

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

>Comment By: Arjan Boeijink (arjanb)
Date: 2004-06-27 22:37

Message:
Logged In: YES 
user_id=688815

This bug is fixed in cvs now.


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=921206&group_id=12788


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com