[foreign-abi] RFR: 8241148: need a way to create MemorySegment with contents from java String and a way to read a C char* as java String
Athijegannathan Sundararajan
sundar at openjdk.java.net
Thu Mar 19 04:07:57 UTC 2020
On Wed, 18 Mar 2020 18:00:12 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> Adding utility methods to ForeignUnsafe class.
>
> test/jdk/java/foreign/Test8241148.java line 81:
>
>> 80: assertEquals(pathStr.length(), len);
>> 81: System.out.println("PATH = " + pathStr);
>> 82: }
>
> Should we compare it with System.getEnv?
>
> https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/System.html#getenv()
>
> Perhaps we could strengthen the test that way by ensuring that the naive getenv returns same values for all the keys in
> the System.getEnv Map.
Will fix this.
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/55
More information about the panama-dev
mailing list