Name: poR10007 Date: 08/10/2001
Javac (jdk1.4.0beta-b74) when running in -Xjcov mode misses some
CharacterRangeTable entries for entities contained in inner classes.
The problem arises when a method of inner class accesses a field of
the enclosing instance, for example.
For the following test:
--Test.java---------------------------------------
public class Test {
boolean b = true, c = false;
public void container() {
class Local {
void assign() {
if(c != b && b != c && b) // here some entries are lost
c = true;
}
}
}
}
--------------------------------------------------
CharacterRangeTable does not contain any entries for the
conditional expression of the if-statement. Actually the
expression contains 3 flow controllers, 3 branches and
2 flow targets.
======================================================================