Ok, I've taken a look into the open JDK code and there is a corba module there that has all the org.omg and javax.rmi.corba classes. Here's what I will try to do: extract the javax.rmi classes and compile them using jacorb's org.omg classes, then do the following with modules:
- create a javax.rmi.api module with this new jar that depends on the org.omg.api jar
- make jacorb depend on the new javax.rmi.api module instead of javax.api
- remove javax.rmi from javax.api
Does approach look ok?