Skip to content
This repository was archived by the owner on Jun 4, 2019. It is now read-only.
This repository was archived by the owner on Jun 4, 2019. It is now read-only.

codegraph -lang java -build "path/to/source/code" error #157

Description

@tianhua87

java code:

import java.util.Scanner;
public class A {
  public static void main(String args[]){
    System.out.println("hello!");
    Scanner cin = new Scanner(System.in);
    int fk = cin.nextInt();
    System.out.println(fk);
  }
}

error:

lxr@lxr-ThinkStation-P310:~/mycode/pfff$ ./codegraph -lang java -build /home/lxr/A.java 
(ONCE) PB: wrong import: java.util.Scanner
PB: lookup fail on Package: String2 (in Method: A.main)
PB: lookup fail on Package: java2.util2.Scanner2 (in Method: A.main)
PB: lookup fail on Package: System2.out2 (in Method: A.main)
nb nodes = 13, nb edges = 4
parse errors = 0
lookup fail = 0
unresolved method calls = 0
(resolved method calls = 0)
unresolved field access = 0
(resolved field access) = 0)
unresolved class access = 0
unresolved calls = 0

I do not know where the problem is.
My java version is 1.8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions