New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File.size? should work on uri:classloader: resources #4105

enebo opened this Issue Aug 23, 2016 · 0 comments


None yet
1 participant

enebo commented Aug 23, 2016

In JRuby 1.7 performing File.size? would work on uri:classloader resources. For example,

    jar = File.expand_path("test/jruby/dir with spaces/test_jar.jar")
    load jar
    expect(File.size?("uri:classloader:/inside_jar.rb")).to eq(108)

jrubyfx regresses on this removal of behavior (see jruby/jrubyfx#101). I added it back (which means reading the resource fully).

@enebo enebo added this to the JRuby milestone Aug 23, 2016

@enebo enebo closed this in 6461ece Aug 23, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment