--- old/src/share/classes/sun/font/PhysicalStrike.java 2009-08-07 10:51:50.000000000 +0200 +++ new/src/share/classes/sun/font/PhysicalStrike.java 2009-08-07 10:51:49.000000000 +0200 @@ -36,7 +36,15 @@ public abstract class PhysicalStrike extends FontStrike { static final long INTMASK = 0xffffffffL; - + static boolean longAddresses; + static { + switch (StrikeCache.nativeAddressSize) { + case 8: longAddresses = true; break; + case 4: longAddresses = false; break; + default: throw new RuntimeException("Unexpected address size"); + } + } + private PhysicalFont physicalFont; protected CharToGlyphMapper mapper; /* the ScalerContext is a native structure pre-filled with the