plasma-umass / doppio

Breaks the browser language barrier (includes a plugin-free JVM).
http://plasma-umass.github.io/doppio-demo
MIT License
2.16k stars 174 forks source link

Could the thread.throwNewException() method use thread.getLoader() instead of thread.getBsCl() #468

Closed hrj closed 8 years ago

hrj commented 8 years ago

The thread.throwNewException() method is very convenient when throwing exceptions from native code. However, it uses the bootstrap class loader for loading the exception class, making it difficult to throw custom exceptions.

If it uses the loader from getLoader(), user defined exceptions can be easily thrown.

jvilk commented 8 years ago

Sounds good to me. Feel free to open a PR!