See https://github.com/xbmc/xbmc/pull/2319

I had to do these in steps to keep everything compiling, that one's the last in the series. Will pull it later today.

But to answer your question, we can't assume they're the same. The classloader in the env can vary based on where it comes from, I plan to abstract that away a bit in the future.