# HG changeset patch # User Doug Simon # Date 1432566540 -7200 # Node ID ca14581fadc4302cd817b751678293120d4f1ca4 # Parent 7fed589ff9826f3c15f8abcfb96dc1b6a6a9b471 handle duplicates when extracting service files diff -r 7fed589ff982 -r ca14581fadc4 mx/mx_graal.py --- a/mx/mx_graal.py Mon May 25 11:06:22 2015 +0200 +++ b/mx/mx_graal.py Mon May 25 17:09:00 2015 +0200 @@ -620,7 +620,7 @@ classification[className] = False break superInterfaces = afterName[len(' extends '):-len(' {')].split(',') - if 'com.oracle.graal.api.runtime.Service' in superInterfaces: + if 'com.oracle.jvmci.runtime.Service' in superInterfaces: classification[className] = True break maybe = [_eraseGenerics(superInterface) for superInterface in superInterfaces] @@ -632,11 +632,11 @@ return classification def _extractMaybes(classification): - maybes = [] + maybes = set() for v in classification.values(): if isinstance(v, list): - maybes.extend(v) - return maybes + maybes.update(v) + return list(maybes) def _mergeClassification(classification, newClassification): for className, value in classification.items():