Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter access issue in ltl violation #242

Open
TaylorHarvin opened this issue Jun 15, 2016 · 0 comments
Open

Parameter access issue in ltl violation #242

TaylorHarvin opened this issue Jun 15, 2016 · 0 comments

Comments

@TaylorHarvin
Copy link

Given code such as the example on the Javamop site below, I am not able to access Object o in the @violation section as shown below. The JavaMOP compiler generates the aspectJ code without any errors, but the aspectJ compiler flags it as unrecognized (apparently scoping issues).
Is this a known issue in JavaMOP? It is accessible in the event advice when passed as a target, but not in @violation.

SafeHashSet(HashSet t, Object o) {
int hashcode;

...
...
...
ltl : add => (not bad_use U remove)

@violation{
System.err.println("HashCode changed for Object " + o + " while being in a Hashtable!");
System.exit(1);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant