Wrapping binary expressions. Bug?

Here is how Idea reformats a binary expression. The issue is that does not
use all available horizontal space instead it puts things on separate lines
using an algorithm I do not understand. First line seem to be wrapped as
expected, the rest get a single element per line. My wrap options set to
"wrap if long" and align turned on for binary ops. I believe in the past it
handled this case better filling each line fully before creating a new one

throw new OrgsException(
"OrgUnitTypeRole has an overlapping scope: Child " +
lower.getOrgUnitType() + " has " + lower.getRole() +
" which is super type of its parent " +
upper.getOrgUnitType() +
" " +
lower, upper);

Please sign in to leave a comment.