Commit c0976df4 authored by Adam Knapp's avatar Adam Knapp
Browse files

Fixing error message typos


Signed-off-by: Adam Knapp's avatarAdam Knapp <adam.knapp@ericsson.com>
parent c43355f0
......@@ -691,7 +691,7 @@ public class FormalParameterList extends TTCN3Scope implements ILocateableNode,
} else {
if (instances.getNofTis() < minimumNofParameters) {
instances.getLocation().reportSemanticError(
MessageFormat.format("Too few parameters: at least {0} was expected instaed of {1}",
MessageFormat.format("Too few parameters: at least {0} was expected instead of {1}",
minimumNofParameters, instances.getNofTis()));
isErroneous = true;
} else if (instances.getNofTis() > parameters.size()) {
......
......@@ -45,7 +45,7 @@ public final class ComponentCreateExpression extends Expression_Value {
private static final String SECONDOPERANDERROR = "The second operand of operation `create()' should be a charstring value";
private static final String COMPONENTEXPECTED = "Operation `create'' should refer to a component type instead of {0}";
private static final String TYPEMISMATCH1 = "Type mismatch: reference to a component type was expected in operation `create'' instead of `{0}''";
private static final String TYPEMISMATCH2 = "Incompatible component type: operation `create'' should refer to `{0}'' instaed of `{1}''";
private static final String TYPEMISMATCH2 = "Incompatible component type: operation `create'' should refer to `{0}'' instead of `{1}''";
private static final String OPERATIONNAME = "create()";
private final Reference componentReference;
......
......@@ -58,7 +58,7 @@ public class UndefCreateExpression extends Expression_Value {
private static final String SECONDOPERANDERROR = "The second operand of operation `create()' should be a charstring value";
private static final String COMPONENTEXPECTED = "Operation `create'' should refer to a component type instead of {0}";
private static final String TYPEMISMATCH1 = "Type mismatch: reference to a component type was expected in operation `create'' instead of `{0}''";
private static final String TYPEMISMATCH2 = "Incompatible component type: operation `create'' should refer to `{0}'' instaed of `{1}''";
private static final String TYPEMISMATCH2 = "Incompatible component type: operation `create'' should refer to `{0}'' instead of `{1}''";
private static final String TRAITINSTANTIATED = "A trait class cannot be instantiated";
private static final String ABSTRACTINSTANTIATED = "An abstract class cannot be instantiated";
private static final String OPERATIONNAME = "create()";
......
......@@ -1792,7 +1792,7 @@ public class AST_tests {
markersToCheck.add(new MarkerToCheck("Operation `create' should refer to a component type instead of constant `@expression_tests.cg_boolean'", ++lineNum, IMarker.SEVERITY_ERROR));
markersToCheck.add(new MarkerToCheck("Referencing fields of a component is not allowed", ++lineNum, IMarker.SEVERITY_ERROR));
markersToCheck.add(new MarkerToCheck("Type mismatch: reference to a component type was expected in operation `create' instead of `@expression_tests.myrecof1'", ++lineNum, IMarker.SEVERITY_ERROR));
markersToCheck.add(new MarkerToCheck("Incompatible component type: operation `create' should refer to `@expression_tests.componentName_CT2' instaed of `@expression_tests.componentName_CT'", ++lineNum, IMarker.SEVERITY_ERROR));
markersToCheck.add(new MarkerToCheck("Incompatible component type: operation `create' should refer to `@expression_tests.componentName_CT2' instead of `@expression_tests.componentName_CT'", ++lineNum, IMarker.SEVERITY_ERROR));
lineNum += 5;
markersToCheck.add(new MarkerToCheck("Parameter 1 of altstep `@expression_tests.as_altstepName' refers to variable `vl_parameter', which is a local definition within a statement block and may have shorter lifespan than the activated default. Only references to variables and timers defined in the component type can be passed to activated defaults", lineNum, IMarker.SEVERITY_ERROR));
lineNum += 2;
......@@ -7531,7 +7531,7 @@ public class AST_tests {
markersToCheck.add(new MarkerToCheck("There is no visible definition with name `T' in module `template_formalparlist_tests'", ++lineNum, IMarker.SEVERITY_ERROR));
markersToCheck.add(new MarkerToCheck("Using not used symbol (`-') as the default parameter is allowed only for modified templates", lineNum, IMarker.SEVERITY_ERROR));
lineNum += 7;
markersToCheck.add(new MarkerToCheck("Too few parameters: at least 1 was expected instaed of 0", lineNum, IMarker.SEVERITY_ERROR));
markersToCheck.add(new MarkerToCheck("Too few parameters: at least 1 was expected instead of 0", lineNum, IMarker.SEVERITY_ERROR));
markersToCheck.add(new MarkerToCheck("Reference to parameterized definition `t_MyTTemp1' without actual parameter list", ++lineNum, IMarker.SEVERITY_ERROR));
 
return markersToCheck;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment