You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
execute the command: bash ~/bin/aviator examples/array.av
stacktrace
type(a) is : int[]
count(a) is: 4
hello,world,aviator
Exception in thread "main" java.lang.ClassNotFoundException: java.lang.int
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.googlecode.aviator.runtime.function.seq.SeqNewArrayFunction.call(SeqNewArrayFunction.java:56)
at Script_1596537804747_0/1639622804.execute0(Unknown Source)
at com.googlecode.aviator.ClassExpression.executeDirectly(ClassExpression.java:65)
at com.googlecode.aviator.BaseExpression.execute(BaseExpression.java:132)
at com.googlecode.aviator.Main.main(Main.java:42)
array.av
## examples/array.av
let a = seq.array(int, 1, 2, 3, 4);
println("type(a) is : " + type(a));
println("count(a) is: " + count(a));
let s = seq.array(java.lang.String, "hello", "world", "aviator");
println(string.join(s, ","));
let a = seq.array_of(int, 3);
println("type(a) is : " + type(a));
println("count(a) is: " + count(a));
println("before assignment:");
for x in a {
println(x);
}
for i in range(0, 3) {
a[i] = i;
}
println("after assignment:");
for x in a {
println(x);
}
The text was updated successfully, but these errors were encountered:
background:
reproduce steps
stacktrace
type(a) is : int[]
count(a) is: 4
hello,world,aviator
Exception in thread "main" java.lang.ClassNotFoundException: java.lang.int
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.googlecode.aviator.runtime.function.seq.SeqNewArrayFunction.call(SeqNewArrayFunction.java:56)
at Script_1596537804747_0/1639622804.execute0(Unknown Source)
at com.googlecode.aviator.ClassExpression.executeDirectly(ClassExpression.java:65)
at com.googlecode.aviator.BaseExpression.execute(BaseExpression.java:132)
at com.googlecode.aviator.Main.main(Main.java:42)
array.av
The text was updated successfully, but these errors were encountered: