NoSuchProcess / phantomuserland

Automatically exported from code.google.com/p/phantomuserland
GNU Lesser General Public License v3.0
0 stars 0 forks source link

j2ptranslator: object fields access #84

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Direct access to object field failure

Original issue reported on code.google.com by akhtyamo...@gmail.com on 15 Jan 2011 at 2:22

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
java code:

    int accessSetInt() {
        field obj = new field();
        obj.fieldInt = 777;
        return obj.getFieldInt();
    }

During java bytecode to phantom byte code translation :

INFO: Processing obj_test.class
obj_test.class:
Exception in thread "main" no such field in class in ident Node (fieldInt)
        at ru.dz.plc.compiler.node.IdentNode.preprocess_me(IdentNode.java:71)
        at ru.dz.plc.compiler.node.Node.preprocess(Node.java:138)
        at ru.dz.plc.compiler.binode.BiNode.preprocess(BiNode.java:68)
        at ru.dz.plc.compiler.binode.BiNode.preprocess(BiNode.java:68)
        at ru.dz.plc.compiler.binode.BiNode.preprocess(BiNode.java:69)
        at ru.dz.plc.compiler.binode.BiNode.preprocess(BiNode.java:69)
        at ru.dz.jpc.tophantom.MethGen.mgen(MethGen.java:221)
        at ru.dz.jpc.tophantom.CFile.write(CFile.java:118)
        at ru.dz.jpc.tophantom.Trans.doname(Trans.java:321)
        at ru.dz.jpc.tophantom.Trans.main(Trans.java:100)

Original comment by akhtyamo...@gmail.com on 15 Jan 2011 at 2:39