roterdam / crystalsaf

Automatically exported from code.google.com/p/crystalsaf
0 stars 0 forks source link

Crystal reports static method invocations as pontential NPEs #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create java code that calls static methods.
2. Run Crystal

Sample code:
private class Utilities {
    public static Utilities getInstance() {
        return null;
    }

    public static void main(Object[] args) {
        System.out,println(Utilities.getInstance());
    }
}

What is the expected output? What do you see instead?
I can see Crystal reports via various analysis that expression "Utilities" in 
the call to Utilities.getInstance() may be null. This is obviously wrong since 
Utilities is static.

What version of the Crystal are you using?
3.5.2

Original issue reported on code.google.com by jn.rouvignac@gmail.com on 10 Jul 2014 at 8:19