jBullet compiling issue with JStackAlloc [SOLVED]

So downloaded latest jBullet (Release 20101010) and I’ve been trying to get it to compile but I’m stuck on this error:

[quote]java.lang.IllegalStateException: first parameter of Stack.alloc(Class) must be constant (in class com.bulletphysics.collision.dispatch.ConvexConcaveCollisionAlgorithm, method processCollision)
[/quote]
It occurs during JStackAlloc’s instrumentation phase of the compile, processing this snippet (I assume, that’s the only calls to that method in the named method):


concaveShape.processAllTriangles(
        btConvexTriangleCallback,
        btConvexTriangleCallback.getAabbMin(Stack.alloc(Vector3f.class)),
        btConvexTriangleCallback.getAabbMax(Stack.alloc(Vector3f.class)));

Now it seems to me that the first parameter IS constant and the instrumentation source code is a bit beyond my knowledge so I’m at something of a loss.

Thanks for any help you can give.

EDIT: The problem sort of resolved itself - see the 4th post for detail.

I know nothing about this, but maybe the Vector3f class has to be declared final?

Tested out this theory just now by implementing my own little project testing out JStackAlloc. Took quite some figuring out the build script but managed to get it working allocating Vector3f and my own classes, both final and not. Only wish it could have been that simple.

OK so it just started working. As far as I can tell, the only difference between today and yesterday is

A) My computer and the IDE (NetBeans) have been off and on again.
B) I’ve used JStackAlloc in another completely separate project.

I can only assume that one of these things have fixed the issue as I haven’t touched the original project otherwise.