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

Stack underflow on inner class chained assignments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.0
    • 1.1.5, 1.1.6, 1.1.7, 1.2.0
    • tools
    • 1.2beta4
    • generic, x86, sparc
    • generic, solaris_2.5.1, solaris_2.6, windows_95, windows_nt
    • Not verified



      Name: dgC58589 Date: 12/10/97


      The compiler dies with stack underflow errors
      when an inner class chains assignments to outer
      class private variables.

      Here's some sample source:
      ----------------------------
      package test;

      public class foo
      {

        private class bar
        {

          private void testMethod()
          {

      // DIES
            _a = _b = _c;

      // COMPILES FINE
      // _b = _c;
      // _a = _b;

          }

        }

        private int _a = 0;
        private int _b = 0;
        private int _c = 0;

      }
      (Review ID: 21553)
      ======================================================================

            wmaddoxsunw William Maddox (Inactive)
            dgrahamcsunw David Graham-cumming (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: