Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // FIXME: duplicated from ClassCache
- Class contents;
- try {
- contents = jrubyClassLoader.loadClass(className);
- if (RubyInstanceConfig.JIT_LOADING_DEBUG) {
- System.err.println("found jitted code for " + filename + " at class: " + className);
- }
- script = (Script)contents.newInstance();
- readStream = new ByteArrayInputStream(buffer);
- } catch (ClassNotFoundException cnfe) {
- if (RubyInstanceConfig.JIT_LOADING_DEBUG) {
- System.err.println("no jitted code in classloader for file " + filename + " at class: " + className);
- }
- } catch (InstantiationException ie) {
- if (RubyInstanceConfig.JIT_LOADING_DEBUG) {
- System.err.println("jitted code could not be instantiated for file " + filename + " at class: " + className);
- }
- } catch (IllegalAccessException iae) {
- if (RubyInstanceConfig.JIT_LOADING_DEBUG) {
- System.err.println("jitted code could not be instantiated for file " + filename + " at class: " + className);
- }
- }
- } catch (IOException ioe) {
- // TODO: log something?
- }
Add Comment
Please, Sign In to add comment