Skip to content

Commit c5f1ded

Browse files
authored
Merge pull request #129 from JoshRosen/synchronize-parse-method
Synchronize ClassfileParser.parse() in attempt to prevent parsing errors in concurrent runs
2 parents b46bd0a + 616ab44 commit c5f1ded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/com/typesafe/tools/mima/core/ClassfileParser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ abstract class ClassfileParser(definitions: Definitions) {
4343

4444
def pool: ConstantPool = thepool
4545

46-
def parse(clazz: ClassInfo) = {
46+
def parse(clazz: ClassInfo) = synchronized {
4747
parsed += 1
4848
parsedClass = clazz
4949
in = new BufferReader(clazz.file.toByteArray)

0 commit comments

Comments
 (0)