Incorrect several most specific methods error when using static imports

Issue #8 resolved
Jesper Öqvist created an issue

JastAddJ 7.1.1-29-g550f24d Java SE 7 gives an incorrect error when building junit-4.11:

  Semantic Error: several most specific methods for fail()
    fail() in org.junit.Assert
    fail() in junit.framework.Assert

In the mentioned source file there are static imports of two different methods from junit.framework.Assert and org.junit.Assert:

import static;
import static org.junit.Assert.assertThat;

So the fail() method should refer to the static method in junit.framework.Assert.

Comments (2)

  1. Log in to comment