Skip to content
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

net.jzran.RandomAccessGZip.Index state is not initialized to State.VOID when #1

Open
GoogleCodeExporter opened this issue Mar 18, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. I'm using the source code available in the download section.
2.
SeekableInputStream sis = new FileSeekableInputStream(new RandomAccessFile(new 
File("content.zip"), "r"));
RandomAccessGZip.Index index = RandomAccessGZip.index(sis, 1048576);
index.open(sis);
3. new IllegalStateException("Can only call open() once") is thrown in 
net.jzran.RandomAccessGZip.Index.open

What is the expected output? What do you see instead?
Stream should be initialized. IllegalStateException

What version of the product are you using? On what operating system?
WindowsXP 32bit, jzran-0.2-src.zip


Please provide any additional information below.
Suggested fix: 
add this.state = State.VOID; to private Index(List<ZRan.Point> idx, long 
decompressedSize) at line 49 in RandomAccessGZip  

Original issue reported on code.google.com by Vitaly.Sazanovich@gmail.com on 21 Nov 2013 at 2:29

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

No branches or pull requests

1 participant