From: Mark S. <mar...@me...> - 2005-12-12 20:56:40
|
Hi, I've been using the bridge for a couple of months now and this is the first problem I've had with it. I'm having trouble accessing the enum listed below. public class Test { public static enum Values { UNITS, VOLUME, SCORE } In java I would reference it as Test.Values.UNITS In php I'm calling $values = $test->Values after I instantiate the class and I get the following error: java stack trace: [o(ByteArrayOutputStream):"java.lang.Exception: GetProperty failed: [o(Test):"@0"]->Values. Cause: java.lang.NoSuchFieldException: Values (with args:). Candidates: [] at php.java.bridge.JavaBridge.setException(JavaBridge.java:560) at php.java.bridge.JavaBridge.GetSetProp(JavaBridge.java:1303) at php.java.bridge.Request.handleRequest(Request.java:202) at php.java.bridge.Request.handleRequests(Request.java:221) at php.java.bridge.JavaBridge.run(JavaBridge.java:233) at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:20) Caused by: java.lang.NoSuchFieldException: Values (with args:). Candidates: [] at php.java.bridge.JavaBridge.GetSetProp(JavaBridge.java:1286) ... 4 more "] I've also tried $values = $test->Values() which does not throw an error but if I try to get the following I get another error: $values->UNITS "java.lang.Exception: GetProperty failed: [o(EnumMap$Values):"[]"]->UNITS. Cause: java.lang.NoSuchFieldException: UNITS (with args:). Can you tell me what I'm doing wrong. Thanks |