ptal / bonsai

Programming language based on the synchronous and constraint paradigms
Apache License 2.0
15 stars 0 forks source link

Method call on `this` in the context of causality analysis #3

Open ptal opened 6 years ago

ptal commented 6 years ago

A problem occurs with method calls such as this.m() since m has accessed to every field of this (see #2). To allow non-static methods in a spacetime module, we can etiher:

  1. Analyse the Java method to check for read and write accesses (seems very complex since we must parse and understand the full Java syntax).
  2. Annotate the call on this with the permissions of the variables accessed.
  3. Allow possible causality holes when calling external functions (i.e. Java methods).