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

fix(cache): Invalidate cache of the compiler. #577

Merged
merged 2 commits into from
Apr 19, 2016
Merged

fix(cache): Invalidate cache of the compiler. #577

merged 2 commits into from
Apr 19, 2016

Conversation

GerardPaligot
Copy link
Contributor

Issue #575


aClass.removeMethod(aMethod);

spoon.getModelBuilder().setShouldInvalidateCache(true);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it required to call twice setShouldInvalidateCache(true)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A compiler is created at each build.

@monperrus
Copy link
Collaborator

what if we don't have an option and we always invalidate the cache?

@GerardPaligot
Copy link
Contributor Author

what if we don't have an option and we always invalidate the cache?

Why have we a cache?

@tdurieux
Copy link
Collaborator

tdurieux commented Apr 8, 2016

Why have we a cache?

Because JDT asks 3 times for the content of the file during one compilation.

@monperrus monperrus merged commit 487bb55 into INRIA:master Apr 19, 2016
@GerardPaligot GerardPaligot deleted the fix_575 branch April 19, 2016 13:54
@tdurieux tdurieux mentioned this pull request Jun 24, 2016
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

Successfully merging this pull request may close these issues.

3 participants