Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/util/JRubyClassLoader.java
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@ private File getTempDir() {
public void addURL(URL url) {
// if we have such embedded jar within a jar, we copy it to temp file and use the
// the temp file with the super URLClassLoader
if ( url.toString().contains( "!/" )) {
if ( url.toString().contains( "!/" ) || !url.getProtocol().equals("file")) {
InputStream in = null; OutputStream out = null;
try {
File f = File.createTempFile("jruby", new File(url.getFile()).getName(), getTempDir());

3 comments on commit bf9d0b0

@kares
Copy link
Member

@kares kares commented on bf9d0b0 Apr 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this broke the spec:ji suite: https://travis-ci.org/jruby/jruby/jobs/121356732

@mkristian
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will allow http and https protocols as well.

Sorry, something went wrong.

@kares
Copy link
Member

@kares kares commented on bf9d0b0 Apr 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, but the 🔴 spec still needs to be reviewed ... when you get a chance, thanks.

Sorry, something went wrong.

Please sign in to comment.