Message9202

Author berndk
Recipients berndk
Date 2014-11-10.08:30:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1415608228.45.0.939621423223.issue2229@psf.upfronthosting.co.za>
In-reply-to
Content
When using Java 8, the following code produces a NameError

import jarray
x=jarray.array([1,3,2], 'f')

from java.util import *
Arrays.sort(x)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'Arrays' is not defined


If I do however an explicit import first (i. e. from java.util import Arrays)

things work.
History
Date User Action Args
2014-11-10 08:30:28berndksetrecipients: + berndk
2014-11-10 08:30:28berndksetmessageid: <1415608228.45.0.939621423223.issue2229@psf.upfronthosting.co.za>
2014-11-10 08:30:28berndklinkissue2229 messages
2014-11-10 08:30:27berndkcreate