Community
Participate
Working Groups
This came up during work on otredyn: Callout-to-field is currently implemented with the indirection of a wrapper method in the base class (generated by the otre) whose purpose is to realize decapsulation. If the field is normally visible to the role class this wrapper is not needed and should thus be avoided.
Created attachment 200226 [details] partial implementation This patch implements the requested optimization for "get" c-t-f. The change spreads out because several locations assumed that a base method always exists for all method bindings, which is no longer true. One test case now reports a more precise error (check was buggy). TODO: include "set" c-t-f in the optimization.
Created attachment 200230 [details] additional fix Fixing previous patch for static base fields (was: build failure).
Created attachment 200233 [details] additional fix with test (3) Fixing previous patch for invisible base class (was: build failure).
All tests pass with the three patches applied.
Verified for 2.0.1 using build 201108160141.