diff --git a/bundles/org.palladiosimulator.retriever.extraction/src/org/palladiosimulator/retriever/extraction/engine/PCMInstanceCreator.java b/bundles/org.palladiosimulator.retriever.extraction/src/org/palladiosimulator/retriever/extraction/engine/PCMInstanceCreator.java index 3e38c9fa..779ab1cb 100644 --- a/bundles/org.palladiosimulator.retriever.extraction/src/org/palladiosimulator/retriever/extraction/engine/PCMInstanceCreator.java +++ b/bundles/org.palladiosimulator.retriever.extraction/src/org/palladiosimulator/retriever/extraction/engine/PCMInstanceCreator.java @@ -32,7 +32,6 @@ import org.palladiosimulator.pcm.repository.ParameterModifier; import org.palladiosimulator.pcm.repository.Repository; import org.palladiosimulator.pcm.seff.ResourceDemandingSEFF; -import org.palladiosimulator.pcm.seff.ServiceEffectSpecification; import org.palladiosimulator.retriever.extraction.commonalities.Component; import org.palladiosimulator.retriever.extraction.commonalities.Composite; import org.palladiosimulator.retriever.extraction.commonalities.Operation; @@ -272,7 +271,9 @@ private void createPCMInterfaces(final Map> i String[] parameterNames = method.getParameterNames(); for (int i = 0; i < parameterTypes.length; i++) { final ITypeBinding parameter = parameterTypes[i]; - signature = this.handleSignatureDataType(signature, parameterNames[i], parameter, + // If a constructor is detected, its parameter names might not be included. + final String parameterName = i < parameterNames.length ? parameterNames[i] : "parameter" + i; + signature = this.handleSignatureDataType(signature, parameterName, parameter, parameter.getDimensions(), false); }