Skip to content

Commit

Permalink
Merge pull request #907 from JasonFengJ9/impljava10getbytes
Browse files Browse the repository at this point in the history
Implement Java 10 j.l.Access.newStringUTF8NoRepl/getBytesUTF8NoRepl
  • Loading branch information
DanHeidinga authored Jan 10, 2018
2 parents b5152c1 + 84fd9e9 commit 939d488
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions jcl/jpp_configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!--
/*******************************************************************************
* Copyright (c) 2002, 2017 IBM Corp. and others
* Copyright (c) 2002, 2018 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 @@ -308,7 +308,7 @@
<classpathentry kind="src" path="src/openj9.sharedclasses/share/classes"/>
<classpathentry kind="src" path="src/openj9.traceformat/share/classes"/>
<classpathentry kind="lib" path="/binaries/common/ibm/ibmjzos.jar"/>
<classpathentry kind="lib" path="/binaries/vm/third/rt-compressed.sun190b174.jar"/>
<classpathentry kind="lib" path="/binaries/vm/third/rt-compressed.sunJava10.jar"/>
<source path="src"/>
<parameter name="macro:define" value="com.ibm.oti.vm.library.version=29"/>
<parameter name="msg:outputdir" value="java.base/share/classes/com/ibm/oti/util"/>
Expand Down
10 changes: 5 additions & 5 deletions jcl/src/java.base/share/classes/java/lang/Access.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package java.lang;

/*******************************************************************************
* Copyright (c) 2007, 2017 IBM Corp. and others
* Copyright (c) 2007, 2018 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 @@ -350,11 +350,11 @@ public boolean isReflectivelyExported(Module fromModule, String pkg, Module toMo
/*[ENDIF] Sidecar19-SE-B165 */

/*[IF Java10]*/
public String newStringUTF8NoRepl(byte[] bytes, int para1, int para2) {
throw new Error("newStringUTF8NoRepl unimplemented"); //$NON-NLS-1$
public String newStringUTF8NoRepl(byte[] bytes, int offset, int length) {
return StringCoding.newStringUTF8NoRepl(bytes, offset, length);
}
public byte[] getBytesUTF8NoRepl(String para) {
throw new Error("getBytesUTF8NoRepl unimplemented"); //$NON-NLS-1$
public byte[] getBytesUTF8NoRepl(String str) {
return StringCoding.getBytesUTF8NoRepl(str);
}
/*[ENDIF] Java10 */

Expand Down

0 comments on commit 939d488

Please sign in to comment.