Test case showing problems on loading library (64 vs 32 bit)
This commit is contained in:
parent
4a6717959c
commit
950b17a8fe
|
@ -0,0 +1,18 @@
|
||||||
|
/*
|
||||||
|
* Created on Jul 12, 2011
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.lwjgl.test.mapped;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
|
import org.lwjgl.opengl.Display;
|
||||||
|
|
||||||
|
public class MappedObjectWithLibrary
|
||||||
|
{
|
||||||
|
public static void testLWJGL() throws Exception
|
||||||
|
{
|
||||||
|
System.out.println(new File(System.getProperty("java.library.path")).getCanonicalPath());
|
||||||
|
Display.create();
|
||||||
|
}
|
||||||
|
}
|
|
@ -44,7 +44,7 @@ public class TestMappedObject {
|
||||||
throw new RuntimeException("Asserts must be enabled for this test.");
|
throw new RuntimeException("Asserts must be enabled for this test.");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) throws Exception {
|
||||||
MappedObjectTransformer.register(MappedFloat.class);
|
MappedObjectTransformer.register(MappedFloat.class);
|
||||||
MappedObjectTransformer.register(MappedVec2.class);
|
MappedObjectTransformer.register(MappedVec2.class);
|
||||||
MappedObjectTransformer.register(MappedVec3.class);
|
MappedObjectTransformer.register(MappedVec3.class);
|
||||||
|
@ -70,6 +70,8 @@ public class TestMappedObject {
|
||||||
MappedObjectTests3.testForeach();
|
MappedObjectTests3.testForeach();
|
||||||
MappedObjectTests3.testConstructor();
|
MappedObjectTests3.testConstructor();
|
||||||
MappedObjectTests3.testMappedSet();
|
MappedObjectTests3.testMappedSet();
|
||||||
|
|
||||||
|
MappedObjectWithLibrary.testLWJGL();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -50,7 +50,7 @@ import java.nio.ByteBuffer;
|
||||||
*/
|
*/
|
||||||
public class MappedObject {
|
public class MappedObject {
|
||||||
|
|
||||||
static final boolean CHECKS = LWJGLUtil.getPrivilegedBoolean("org.lwjgl.util.mapped.Checks");
|
static final boolean CHECKS = false;//LWJGLUtil.getPrivilegedBoolean("org.lwjgl.util.mapped.Checks");
|
||||||
|
|
||||||
public MappedObject() {
|
public MappedObject() {
|
||||||
//
|
//
|
||||||
|
|
|
@ -32,8 +32,8 @@ import static org.objectweb.asm.Opcodes.*;
|
||||||
*/
|
*/
|
||||||
public class MappedObjectTransformer {
|
public class MappedObjectTransformer {
|
||||||
|
|
||||||
static final boolean PRINT_TIMING = LWJGLUtil.DEBUG && LWJGLUtil.getPrivilegedBoolean("org.lwjgl.util.mapped.PrintTiming");
|
static final boolean PRINT_TIMING = false;//LWJGLUtil.DEBUG && LWJGLUtil.getPrivilegedBoolean("org.lwjgl.util.mapped.PrintTiming");
|
||||||
static final boolean PRINT_ACTIVITY = LWJGLUtil.DEBUG && LWJGLUtil.getPrivilegedBoolean("org.lwjgl.util.mapped.PrintActivity");
|
static final boolean PRINT_ACTIVITY = false;//LWJGLUtil.DEBUG && LWJGLUtil.getPrivilegedBoolean("org.lwjgl.util.mapped.PrintActivity");
|
||||||
static final boolean PRINT_BYTECODE = false; //LWJGLUtil.DEBUG && LWJGLUtil.getPrivilegedBoolean("org.lwjgl.util.mapped.PrintBytecode");
|
static final boolean PRINT_BYTECODE = false; //LWJGLUtil.DEBUG && LWJGLUtil.getPrivilegedBoolean("org.lwjgl.util.mapped.PrintBytecode");
|
||||||
|
|
||||||
private static final Map<String, MappedSubtypeInfo> className_to_subtype;
|
private static final Map<String, MappedSubtypeInfo> className_to_subtype;
|
||||||
|
|
Loading…
Reference in New Issue