Fixing modality in fake overrides

The modality was nondeterministic before.
The main change sits in OverrideResolver: the logic of "fake override" generation is restructured so that
all the descriptors a newly created "fake" one overrides are known by the time it is created, so its
modality can be determined properly from their modalities.

Also, the ReadJavaBinaryClassTestGenerated is now a clear JUnit3 test case
This commit is contained in:
Andrey Breslav
2012-07-06 19:46:43 +04:00
parent 0192e16f39
commit 9f0f6f862a
18 changed files with 152 additions and 120 deletions
@@ -0,0 +1,15 @@
package test;
import java.util.AbstractList;
public class ModalityOfFakeOverrides extends AbstractList<String> {
@Override
public String get(int index) {
return "";
}
@Override
public int size() {
return 0;
}
}