Some more debug info relating to the 5.6.15 test case⦠It appears that the problem is that the root does not have an alias (yet) when the JQL is generated. So then PathTypeExpression.render() invokes Root.getPathIdentifier() which returns getAlias(), which is null at that time. The resulting JQL looks like this:
Note the type(null), which causes the problem. This, even though later we have Animal as generatedAlias0. The bug in the test case can be worked around with this patch:
So the fix is to somehow force alias generation sooner. |