diff --git a/src/org/rascalmpl/library/lang/java/m3/internal/ASTConverter.java b/src/org/rascalmpl/library/lang/java/m3/internal/ASTConverter.java index a87b078713c..22ed239d99d 100644 --- a/src/org/rascalmpl/library/lang/java/m3/internal/ASTConverter.java +++ b/src/org/rascalmpl/library/lang/java/m3/internal/ASTConverter.java @@ -123,6 +123,7 @@ import org.eclipse.jdt.core.dom.WildcardType; import io.usethesource.vallang.ISourceLocation; +import io.usethesource.vallang.IString; import io.usethesource.vallang.IValue; import io.usethesource.vallang.type.TypeFactory; @@ -936,7 +937,7 @@ public boolean visit(MethodDeclaration node) { IListWriter parameters = values.listWriter(); for (Iterator it = node.parameters().iterator(); it.hasNext();) { SingleVariableDeclaration v = (SingleVariableDeclaration) it.next(); - parameters.add(visitChild(v)); + parameters.insert(visitChild(v)); } IListWriter possibleExceptions = values.listWriter();