From: <php...@li...> - 2012-11-22 02:47:46
|
Hello, I have a Java class with a enum inner class (from third): public class RecordRef implements java.io.Serializable, Comparable, test.common.Constants { public static enum Source {NONE,JBOSS,XML} public final Source source; public final String tableName; public final int id; public final String name; private Object key; public RecordRef(Source s, String t, int i, String n) { this.source = s; this.tableName = t; this.id = i; this.name = n; } .. I need to get a instance of Source to get a instance of RecordRef.but I'm not knowing how to get this. the FAQ shows to use "$" syntax: <?php $bridge = new java('php$java$bridge'); echo $bridge->JavaBridgeRunner; ?> But I'm trying : $j = new java("test.j2ee.dto.RecordRef$Source"); $r = $j->JBOSS; echo java_inspect($j); and this crash Tomcat.. Also $r=$j::JBOSS; crashes .On commenting line with $r, I get the inspect display but it is exactly the same for $j = new java("test.j2ee.dto.RecordRef"); (with the $Source).Maybe some problem with enum being static?? Can someone help me with this stuff?? Thanks for The Bridge, Ely Matos |