An adviser of the EU Court of Justice agreed with Croatia on Wednesday that settling the border between Slovenia and Croatia was not a matter on which EU courts should rule.