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

TempNewSymbol should have correct copy and assignment functions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • None
    • b105

        // Operator= increments reference count.
        void operator=(const TempNewSymbol &s) {
          //clear(); //FIXME
          _temp = s._temp;
          if (_temp !=NULL) _temp->increment_refcount();
        }

      But this is also missing a copy constructor.

            coleenp Coleen Phillimore
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: