Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4490554

CharacterRangeTable: some entries of inner classes are lost

XMLWordPrintable

    • beta3
    • generic
    • generic
    • Verified



      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.


      ======================================================================

            gafter Neal Gafter (Inactive)
            passunw Pas Pas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: