Guest User

Untitled

a guest
Jul 19th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1.  
  2. // FIXME: duplicated from ClassCache
  3. Class contents;
  4. try {
  5. contents = jrubyClassLoader.loadClass(className);
  6. if (RubyInstanceConfig.JIT_LOADING_DEBUG) {
  7. System.err.println("found jitted code for " + filename + " at class: " + className);
  8. }
  9. script = (Script)contents.newInstance();
  10. readStream = new ByteArrayInputStream(buffer);
  11. } catch (ClassNotFoundException cnfe) {
  12. if (RubyInstanceConfig.JIT_LOADING_DEBUG) {
  13. System.err.println("no jitted code in classloader for file " + filename + " at class: " + className);
  14. }
  15. } catch (InstantiationException ie) {
  16. if (RubyInstanceConfig.JIT_LOADING_DEBUG) {
  17. System.err.println("jitted code could not be instantiated for file " + filename + " at class: " + className);
  18. }
  19. } catch (IllegalAccessException iae) {
  20. if (RubyInstanceConfig.JIT_LOADING_DEBUG) {
  21. System.err.println("jitted code could not be instantiated for file " + filename + " at class: " + className);
  22. }
  23. }
  24. } catch (IOException ioe) {
  25. // TODO: log something?
  26. }
Add Comment
Please, Sign In to add comment