NullPointerException for invalid coll declaration

Issue #196 resolved
Alfred Theorin created an issue

If a collection attribute is declared with an invalid root class, JastAdd throws a NullPointerException:

// AST
Goal;
import java.util.ArrayList;

aspect CollectionException {
    coll ArrayList<Integer> Goal.myColl() [new ArrayList<Integer>()]
        with add root MisspelledGoal;

    // Contribution required
    Goal contributes new Integer(5) to Goal.myColl() for this;
}

Used JastAdd version: 2.1.10

Comments (2)

  1. Log in to comment