Package org.jnode.vm.classmgr

Examples of org.jnode.vm.classmgr.VmConstString


            initialize(sf);
            Object obj = getStaticFieldAddress(sf).loadObjectReference().toObject();
            //handles the reflective access to static final String fields, which didn't work.
            if (obj != null && sf.isFinal() && field.getSignature().equals("Ljava/lang/String;")) {
                if (obj instanceof VmConstString) {
                    VmConstString cs = (VmConstString) obj;
                    obj = VmUtils.getVm().getSharedStatics().getStringEntry(cs.getSharedStaticsIndex());
                }
            }
            return obj;
        } else {
            final VmInstanceField inf = (VmInstanceField) field;
View Full Code Here


        @Override
        Object getObject(int offset){
            Object obj = super.getObject(offset);
            //handles the reflective access to static final String fields, which didn't work.
            if(obj instanceof VmConstString){
                VmConstString cs = (VmConstString) obj;
                obj = VmUtils.getVm().getSharedStatics().getStringEntry(cs.getSharedStaticsIndex());
            }
            return obj;
        }
View Full Code Here

TOP

Related Classes of org.jnode.vm.classmgr.VmConstString

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.