1.4K Star 7.6K Fork 1.4K

GVP方舟编译器 / OpenArkCompiler

 / 详情

jbc2mpl: generates code with mismatching types which caused failure when run

已完成
成员
创建于  
2020-09-04 07:02

jbc2mpl generated code with mismatching type which causes failure when code is executed.

  1. Test.java

public class Test {

private byte byteVar;

public static void main(String[] args) {
    Test test = new Test();
    test.nestedByteVar();
    System.out.println(test.byteVar);
}

void nestedByteVar() {
    byteVar = 1;
    Nested nested = new Nested();
    nested.incByte();
}

class Nested {
    void incByte() {
        byteVar += 1;
    }
}

}

  1. Type mismatch generated by jbc2mpl in Test.mpl

213 #LINE Test.java : 19, INSTIDX : 12||000c: iadd
214 dassign %Reg1_I 0 (add i32 (dread i8 %Reg1_B, dread i32 %Reg2_I)) <----- type mismatch between add i32 and dread i8.

评论 (0)

eching 创建了任务
eching 关联仓库设置为HarmonyOS/OpenArkCompiler
BinaryFZ 任务状态待办的 修改为已完成
展开全部操作日志

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
C++
1
https://gitee.com/openarkcompiler/OpenArkCompiler.git
git@gitee.com:openarkcompiler/OpenArkCompiler.git
openarkcompiler
OpenArkCompiler
OpenArkCompiler

搜索帮助