You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Groovy-Eclipse sometimes drops spurious errors in the editor saying that a constructor added by @TupleConstructor can't be found, but these are generally cosmetic and don't result in actual compilation errors (i.e., no markers, code runs).
However, I've discovered that as of 3.0.7 having a static nested class (a record for a command type) annotated with @TupleConstructor causes actual errors using the Groovy-Eclipse compiler; the previous false alarm does generate a marker and a failing class file. A full clean and build, which usually handles mismatches because everything's available, doesn't help. mvn compile with groovyc works fine.
The text was updated successfully, but these errors were encountered:
I would need an example project to take this further. In general, the transforms that add members to a class that are not already represented by an interface of Object (TupleConstructor vs ToString) cause problems. Example, class A has reference to class B. When compiling class A, the reference to B is resolved by processing class B as far as conversion. B is not fully processed because it may contain a direct or indirect reference to class A. This is discussed further in #704 and others.
Groovy-Eclipse sometimes drops spurious errors in the editor saying that a constructor added by
@TupleConstructor
can't be found, but these are generally cosmetic and don't result in actual compilation errors (i.e., no markers, code runs).However, I've discovered that as of 3.0.7 having a static nested class (a record for a command type) annotated with
@TupleConstructor
causes actual errors using the Groovy-Eclipse compiler; the previous false alarm does generate a marker and a failing class file. A full clean and build, which usually handles mismatches because everything's available, doesn't help.mvn compile
with groovyc works fine.The text was updated successfully, but these errors were encountered: