From 0ef0986731c23b00510e9501e1627b7712a45b65 Mon Sep 17 00:00:00 2001 From: Volkan Yazici Date: Thu, 12 Jun 2025 17:12:04 +0000 Subject: [PATCH] 8359168: Revert stdin.encoding usage in test/hotspot/jtreg/vmTestbase/nsk/jvmti/AttachOnDemand/attach010/attach010Agent00.java Reviewed-by: cjplummer --- .../nsk/jvmti/AttachOnDemand/attach010/attach010Agent00.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/AttachOnDemand/attach010/attach010Agent00.java b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/AttachOnDemand/attach010/attach010Agent00.java index 1e0abf4e11e..877c1e3862e 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/AttachOnDemand/attach010/attach010Agent00.java +++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/AttachOnDemand/attach010/attach010Agent00.java @@ -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) {