diff --git a/src/main/java/gr/uom/java/xmi/diff/UMLClassBaseDiff.java b/src/main/java/gr/uom/java/xmi/diff/UMLClassBaseDiff.java index 9ab74a4fc..745071470 100644 --- a/src/main/java/gr/uom/java/xmi/diff/UMLClassBaseDiff.java +++ b/src/main/java/gr/uom/java/xmi/diff/UMLClassBaseDiff.java @@ -2507,7 +2507,7 @@ private UMLOperationBodyMapper findBestMapper(TreeSet ma VariableDeclarationContainer secondBestMapperOperation1 = mapperList.size() > 1 ? mapperList.get(1).getContainer1() : null; VariableDeclarationContainer secondBestMapperOperation2 = mapperList.size() > 1 ? mapperList.get(1).getContainer2() : null; boolean secondBestMapperEqualSignatureWithCommonParameterTypes = secondBestMapperOperation1 != null && secondBestMapperOperation2 != null ? - equalSignatureWithCommonParameterTypes(secondBestMapperOperation1, secondBestMapperOperation2) : false; + equalSignatureWithCommonParameterTypes(secondBestMapperOperation1, secondBestMapperOperation2) && !secondBestMapperOperation1.isConstructor() && !secondBestMapperOperation2.isConstructor() : false; int secondBestCommontParameterTypes = secondBestMapperOperation1 != null && secondBestMapperOperation2 != null ? secondBestMapperOperation1.commonParameterTypes(secondBestMapperOperation2).size() : 0; boolean identicalBodyWithOperation1OfTheBestMapper = identicalBodyWithAnotherAddedMethod(bestMapper);