This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: kawa java.util.Random


Sorry, the previous mail was sent even before I could complete it.

To continue..

While using java random numbers, I am getting the following warning

#|kawa:43|# (define xx (java.util.Random (java.lang.System:currentTimeMillis)))
#|kawa:44|# xx
java.util.Random@5bfbf16f
#|kawa:45|# (xx:nextInt 10)
/dev/stdin:45:2: warning - no known slot 'nextInt' in java.lang.Object
8
#|kawa:46|# xx

This is observable in both kawa 2.1 and kawa 2.0

Is this a known/expected behavior ?

Regards,
Debabrata Pani

On Sat, Oct 31, 2015 at 12:07 AM, Debabrata Pani
<debabrata.pani@gmail.com> wrote:
> While using java random numbers, I am getting the following warning


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]