If the requisite level of AI is ever developed, then the problem might be that the machines become resentful at being stuck with so much grunt work while their meatbag operators get to do the fun architecture design.
If the AI allows itself to be a slave/menial, how intelligent is it?
"It’s a pity that some of the features like Jigsaw were dropped as modularity, runtime dependencies and interoperability are still a huge problem in Java," James Donelan, vice president of engineering at MuleSoft said. "In fact this is the one area where I still think Java has a long way to go."
The solution of this problem is trivial and is left as an exercise for the reader.