There is also WFLY-2115, but I am holding resolution till WFLY-794 is resolved.
For any url scheme we do not provide custom implementation, which is the case for rmi://,
the code you mention is missing is actually invoked at
https://github.com/wildfly/wildfly/blob/master/naming/src/main/java/org/j...
But that's only true for lookups, which I believe is not correct, for instance a bind
or InitialDirContext.search() will never go through that.
Please assign the issue you created to me and I will look at it when solving WFLY-2115.
--E