Issue Type: Bug Bug
Assignee: Thomas E Enebo
Created: 03/Jan/13 4:38 PM
Description:

File#seek(0, SEEK_SET) doesn't actually seek in the file when the file is being read from a jar, files like: "file://path/to/something.jar!/somefile".

https://github.com/jordansissel/experiments/blob/master/ruby/jruby-file-seek/seek.rb

% rspec seek.rb -e SEEK_SET
Run options: include {:full_description=>/SEEK_SET/}
F.

Failures:

  1) File#seek(0, SEEK_SET) file://home/jls/projects/experiments/ruby/jruby-file-seek/input.jar!/input should seek to the beginning
     Failure/Error: insist { first } == second
     Insist::Failure:
       Expected "9\n10\n11\n12\n13\n14", but got "1\n2\n3\n4\n5\n6\n7\n8\n"
     # ./seek.rb:18:in `(root)'

Finished in 0.029 seconds
2 examples, 1 failure
Environment: jruby 1.7.1 (1.9.3p327) 2012-12-03 30a153b on OpenJDK 64-Bit Server VM 1.7.0_09-icedtea-mockbuild_2012_10_17_15_53-b00 [linux-amd64]

Linux pork 3.6.9-2.fc17.x86_64 #1 SMP Tue Dec 4 13:26:04 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Project: JRuby
Priority: Major Major
Reporter: Jordan Sissel
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to