8359168: Revert stdin.encoding usage in test/hotspot/jtreg/vmTestbase/nsk/jvmti/AttachOnDemand/attach010/attach010Agent00.java

Reviewed-by: cjplummer
This commit is contained in:
Volkan Yazici 2025-06-12 17:12:04 +00:00
parent 610a18e7b3
commit 0ef0986731

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2018, 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
@ -60,8 +60,7 @@ public class attach010Agent00 extends AbstractJarAgent {
FileInputStream newInputStream = new FileInputStream(inStreamFileName);
System.setIn(newInputStream);
BufferedReader inputStreamReader = new BufferedReader(new InputStreamReader(
System.in, System.getProperty("stdin.encoding")));
BufferedReader inputStreamReader = new BufferedReader(new InputStreamReader(System.in));
int readValue = Integer.parseInt(inputStreamReader.readLine());
if (readValue != valueToWrite) {