Hi,
I get the following error while compiling my b4a project:
it seems that in one function the compiler uses the correct ABGroup[] and in the other one ABGroup[][]
this is the b4a code:
this is the java code of both functions. To me it looks like I'm doing two times the same.
Any ideas?
I get the following error while compiling my b4a project:
B4X:
Compiling code. 0.01
Generating R file. 0.00
Compiling generated Java code. Error
B4A line: 75
ph.AddArrayOfGroups(Array As ABGroup(g, g2, g3, g4))
javac 1.6.0_21
src\com\AB\ABPhysicsTest\main.java:292: inconvertible types
found : com.AB.ABPhysicsEngine.ABPhysicsEngine.ABGroup[]
required: com.AB.ABPhysicsEngine.ABPhysicsEngine.ABGroup[][]
mostCurrent._ph.AddArrayOfGroups((com.AB.ABPhysicsEngine.ABPhysicsEngine.ABGroup[][])(new com.AB.ABPhysicsEngine.ABPhysicsEngine.ABGroup[]{_g,_g2,_g3,_g4}));
this is the b4a code:
B4X:
g2.AddArrayOfGroupsToCollisionList(Array As ABGroup(g3,g4))
ph.AddArrayOfGroups(Array As ABGroup(g, g2, g3, g4))
this is the java code of both functions. To me it looks like I'm doing two times the same.
B4X:
public void AddArrayOfGroupsToCollisionList(ABGroup[] array) {
for (int i=0;i<array.length;i++) {
_collisionList.add(array[i]);
}
}
public void AddArrayOfGroups(ABGroup[] array) {
for (int i=0;i<array.length;i++) {
_groups.add(array[i]);
}
}
Any ideas?