tzaeschke / zoodb

ZooDB Object Database
Apache License 2.0
57 stars 9 forks source link

For the Enhancer, avoid calling activators from default contructor #52

Open tzaeschke opened 9 years ago

tzaeschke commented 9 years ago

For example, test the following case:

class A {
   int x;
   A() {
      setX(0);
   }

   void setX(int x2) {
      activateWrite();
      this.x = x2;
   }
}

Obviously, this would mark the object as dirty whenever it is loaded from the database...

mojo2012 commented 7 years ago

Could easily be done with aspectj compile or load time weaving