IllegalAccessException for java.lang.Math.random [message #1760381] |
Wed, 26 April 2017 14:21 |
Sina Madani Messages: 160 Registered: November 2015 Location: York, UK |
Senior Member |
|
|
Hello,
I am experimenting with some code in EVL and have the following constraint (context omitted for brevity):
constraint busyComp {
check {
var Math : new Native("java.lang.Math");
var rand : Real = 0.1;
while (rand < 0.95) {
rand = Math.random();
}
return true;
}
}
However, I get the following error when I run this:
Internal error: java.lang.IllegalAccessException: Class org.eclipse.epsilon.eol.types.EolClasspathNativeTypeDelegate can not access a member of class java.lang.Math with modifiers "private"
I'm not sure if this is a bug or I'm using the wrong syntax to declare a native type? For reference, java.lang.Math.random() is a static method which returns a double.
Thanks.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02660 seconds