OpenJDK b33 and IcedTea

Mark Wielaard mark at klomp.org
Tue Aug 26 11:17:38 UTC 2008


Hi Andrew,

On Tue, 2008-08-26 at 00:46 +0100, Andrew John Hughes wrote:
> ../../../src/share/native/sun/java2d/opengl/OGLContext.c:855: error:
> 'sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_TEXNONSQUARE'
> undeclared (first use in this function)
> 
> gjavah only generates a subset

This one is also curious. The constant you mention, CAPS_TEXNONSQUARE,
isn't defined in OGLContext.OGLContextCaps, but in the super class
ContextCapabilities. I cannot find the exact rules for generating the
constants from static final (super) classes. Apparently for the pusposes
of javah you inherit the static fields of your super class. But I don't
believe any javah except the openjdk one does that. It seems more
correct to include sun_java2d_pipe_hw_ContextCapabilities.h and use the
constant sun_java2d_pipe_hw_ContextCapabilities_CAPS_TEXNONSQUARE in
the .c source file.

Cheers,

Mark




More information about the build-dev mailing list