Adding :: generates faulty code
When I add a read/write context of type
Submitted by Jeff Smits on 11 May 2015 at 19:22Scopeto arrow-sc->that always returns aConstraint, the generated code forR_sc_Constraintgains an@Childfield_1of typeI_Scope, which makes sense.
But then in the constructor of that Java class, it callsadoptChild, butR_*classes don’t extendAbstractNodeso that leaves me with faulty code. If I try to removeadoptChildthe code compiles. But I’m not sure if that’s the correct approach, as the old way of doing this was using an extra constructorScCto return both aScopeandConstraint(and use a read contextScope), and that constructor extendedAbstractNodeand had aspecializeChildrendefined.
Log in to post comments