Skip to content

Commit 0ef0986

Browse files
author
Volkan Yazici
committed
8359168: Revert stdin.encoding usage in test/hotspot/jtreg/vmTestbase/nsk/jvmti/AttachOnDemand/attach010/attach010Agent00.java
Reviewed-by: cjplummer
1 parent 610a18e commit 0ef0986

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/hotspot/jtreg/vmTestbase/nsk/jvmti/AttachOnDemand/attach010/attach010Agent00.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2025, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -60,8 +60,7 @@ protected void agentActions() throws Throwable {
6060
FileInputStream newInputStream = new FileInputStream(inStreamFileName);
6161
System.setIn(newInputStream);
6262

63-
BufferedReader inputStreamReader = new BufferedReader(new InputStreamReader(
64-
System.in, System.getProperty("stdin.encoding")));
63+
BufferedReader inputStreamReader = new BufferedReader(new InputStreamReader(System.in));
6564
int readValue = Integer.parseInt(inputStreamReader.readLine());
6665

6766
if (readValue != valueToWrite) {

0 commit comments

Comments
 (0)