Generated tracing code for collection attributes fails on Windows
Issue #334
new
The following is causing compilation errors on Windows when using tracing of collection attribute contributions:
state().trace().contributionCheckBegin("Annotations", this, "CompilationUnit_problems", "decl().isDeprecated()
&& !withinDeprecatedAnnotation()
&& hostType().topLevelType() != decl().hostType().topLevelType()
&& !withinSuppressWarnings(\"deprecation\")");
A final “ is missing on the first line.
On Linux the generated line looks like this:
state().trace().contributionCheckBegin("Annotations", this, "CompilationUnit_problems", "decl().isDeprecated() && !withinDeprecatedAnnotation() && hostType().topLevelType() != decl().hostType().topLevelType() && !withinSuppressWarnings(\"deprecation\")");
3:25
line is too long to fit in a string literal.
Possible source of the problem: line 103 in Trace.jrag i JastAdd2:
syn String CollEq.escapeConditionForTemplate() = getCondition().replace("\n", " ").replace("\"", "\\\"");