Skip to content

Commit

Permalink
Merge pull request #8315 from JasonFengJ9/v0.18.0-ioutilreadfull
Browse files Browse the repository at this point in the history
(v0.18.0-release) Use sun.misc.IOUtils new API readAllBytes()
  • Loading branch information
pshipton authored Jan 15, 2020
2 parents cedc44e + ac14b54 commit 6968c18
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*[INCLUDE-IF Sidecar17]*/
/*******************************************************************************
* Copyright (c) 2012, 2019 IBM Corp. and others
* Copyright (c) 2012, 2020 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -106,7 +106,7 @@ public byte[] run() {
return Lookup.class.getResourceAsStream("/java/lang/invoke/SecurityFrame.class").readAllBytes(); //$NON-NLS-1$
/*[ELSE]*/
InputStream is = Lookup.class.getResourceAsStream("/java/lang/invoke/SecurityFrame.class"); //$NON-NLS-1$
return IOUtils.readFully(is, -1, true);
return IOUtils.readAllBytes(is);
/*[ENDIF]*/
} catch(java.io.IOException e) {
/*[MSG "K056A", "Unable to read java.lang.invoke.SecurityFrame.class bytes"]*/
Expand Down

0 comments on commit 6968c18

Please sign in to comment.