You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the issue: private static List<WildcardImportResolver> resolvers;
is used like a poor man's singleton so, when concurrent calls stat hitting getImportResolvers, sooner or later a concurrent modification exception is thrown.
The simpler solutions is to wrap the body of getImportResolvers in synchronized (JavaSourceImpl.class) {} block but I'm sure there are also more elegant fixes.
The text was updated successfully, but these errors were encountered:
This is the issue:
private static List<WildcardImportResolver> resolvers;
is used like a poor man's singleton so, when concurrent calls stat hitting
getImportResolvers
, sooner or later a concurrent modification exception is thrown.The simpler solutions is to wrap the body of getImportResolvers in
synchronized (JavaSourceImpl.class) {}
block but I'm sure there are also more elegant fixes.The text was updated successfully, but these errors were encountered: