Skip to content

[BUG]扫描Java代码时候出现死循环情况 #5

@cyw3

Description

@cyw3

Demo:

package test;

public class Test{
    private void test(int id) {
        tA t = new tA();
    }
}

使用上面Demo代码进行扫描时候,发现会在下面位置所在函数陷入死循环:
https://github.com/charj-lang/scie/blob/e5ca8e42d4262c3d48bebf260b53b3e25fd0c76e/scie-grammar/src/grammar/grammar.rs#L280

这里应该tA这个命名导致的,若修改为A就不会陷入死循环。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions