Closed
Description
For the following program
public class NullPointer5
{
void f()
{
Object o = new Object();
if(null == o)
assert false;
assert true;
}
void g()
{
Object o = new Object();
if(o == null)
assert false;
assert true;
}
}
the result of checking --function NullPointer5.g
is ok, while --function NullPointer.f
fails with the above error.
The same error is triggered with --function Inheritance3.f
in
class Inheritance3
{
class A
{
}
class B extends A
{
}
void f()
{
A a = new A();
B b = new B();
if(a == b)
assert false;
assert true;
}
}