rpau / javalang-compiler

Java compiler elements (symbol and type tables) to perform code semantic analysis
GNU Lesser General Public License v3.0
10 stars 4 forks source link

Duplicate "usage" entry in AST #29

Open cal101 opened 7 years ago

cal101 commented 7 years ago

The code in the following string leads to a duplicated usage entry in the usage list:

        final String in = "public class Usage {\n"
                + "  public void f() {\n"
                + "    C ca[] = new C[2];\n"
                + "    String s[] = new String[ca.length];\n"
                + "    for (C c : ca) s[0] = c.toString();\n"
                + "  }\n"
                + "}\n";

I looked into the analyzer but could not locate it.