Skip to content

Commit

Permalink
Port 1 z/OS file from Java 11 z/OS
Browse files Browse the repository at this point in the history
1 file was manually ported from Java 11 z/OS:
src/jdk.compiler/share/classes/com/sun/tools/javac/file/BaseFileManager.java

The compilation was successful using the following command:
/root/jdk-17.0.3+7/bin/javac -g -source 17 -target 17 --patch-module jdk.compiler=/root/o9-17/openj9-openjdk-jdk17-zos/src/
jdk.compiler/share/classes -d .modules/jdk.compiler src/jdk.compiler/share/classes/com/sun/tools/javac/file/BaseFileManager.java

Signed-off-by: Danja Papajani <danja.papajani@ibm.com>
  • Loading branch information
danjapapajani committed Aug 16, 2022
1 parent 0596a51 commit 3f8c566
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* ===========================================================================
* (c) Copyright IBM Corp. 2019, 2019 All Rights Reserved
* ===========================================================================
*/

package com.sun.tools.javac.file;

Expand Down Expand Up @@ -309,6 +314,10 @@ private String getDefaultEncodingName() {
return defaultEncodingName;
}

public String getRawEncodingName() {
return encodingName;
}

public String getEncodingName() {
return (encodingName != null) ? encodingName : getDefaultEncodingName();
}
Expand Down

0 comments on commit 3f8c566

Please sign in to comment.