Overly eager annotation parsing

Issue #257 resolved
Jesper Öqvist created an issue

JastAdd 2.2.0

It seems like the annotation parser in JastAdd includes comments in the annotations, leading to strange bugs like this:

  // Test lazy condition.
  @LazyCondition
  coll Collection<Problem> Program.problems() [ new LinkedList<Problem>() ] with add;

===
    [junit] JastAdd code generation failed when expected to pass:
    [junit] Error at tests/coll/lazycondition_02p/Test.jrag:15: unsupported annotations for this attribute declaration: // Test lazy condition.
    [junit]   @LazyCondition

Note that removing the comment above fixes the test.

Comments (1)

  1. Log in to comment