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

CharacterRangeTable: some entries of inner classes are lost

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta3
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description



      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.


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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: