glSelectBuffer error

Hey everybody !

I am getting an error when i try to select a Buffer by calling glSelectBuffer. Errors says that i should pass int[] instead of IntBuffer as a second parameter:

IntBufferselectBuf = BufferUtils.newIntBuffer(SEL_BUF_SZ);

gl.glSelectBuffer(SEL_BUF_SZ, selectBuf);

It is a jogl code running on Eclipse 2.1 platform using J2re 1.4.2 Standard Edition.
It works on Linux machine just fine, though. Can you give me some sugestions on how to solve the this problem. thanks MIRO.

You need to upgrade your JOGL installation to the latest build from https://jogl.dev.java.net/servlets/ProjectDocumentList . Earlier releases had bugs in the glSelectBuffer binding which have been fixed by having it take an IntBuffer as argument instead of an int[].