Skip to content

Commit

Permalink
Minor bugfixing.
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckeyHack committed Jun 29, 2016
1 parent c64e975 commit b3166d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class EDLValidator extends AbstractEDLValidator implements IErrorReportingServic
reportError("Fitness function must be a numeric expression.", ensemble, EdlPackage.Literals.ENSEMBLE_DEFINITION__FITNESS)
}

if (!this.typing.isKnownType(ensemble.id.type))
if (!this.typing.isKnownType(ensemble.id.type) && !ensemble.id.type.toString().equals(PrimitiveTypes.INT))
reportError("Could not resolve the type name: " + ensemble.id.type, ensemble.id.type, EdlPackage.Literals.QUALIFIED_NAME__PREFIX)

if (ensemble.id.isIsAssigned) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ public Expr visit(KnowledgeVariable query) {
try {
return idMapping.getFieldExpression(ctx, ensembleIndex, query.getPath());
} catch (Exception e) {
// TODO Rethrow?
System.out.println("Catch!");
// TODO Rethrow?
}
}

Expand Down

0 comments on commit b3166d6

Please sign in to comment.