8228392: Backout incorrect change done by JDK-8067801

Reviewed-by: lancea
This commit is contained in:
Brian Burkhalter 2019-07-18 17:10:33 -07:00
parent e396e38bb3
commit ba9c952f87
6 changed files with 10 additions and 99 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -75,8 +75,6 @@ class PackageReader extends BandStructure {
*/
static
class LimitedBuffer extends BufferedInputStream {
static final InputStream NULL_STREAM = InputStream.nullInputStream();
long served; // total number of charburgers served
int servedPos; // ...as of this value of super.pos
long limit; // current declared limit
@ -125,7 +123,7 @@ class PackageReader extends BandStructure {
throw new RuntimeException("no skipping");
}
LimitedBuffer(InputStream originalIn) {
super(NULL_STREAM, 1<<14);
super(null, 1<<14);
servedPos = pos;
super.in = new FilterInputStream(originalIn) {
public int read() throws IOException {