[foreign-jextract] RFR: Do not try to resize constant string segments in TestClassGeneration.java
Jorn Vernee
jvernee at openjdk.java.net
Mon Apr 20 10:11:07 UTC 2020
Hi,
This fixes a problem with the TestClassGeneration test, which tries to resize a MemrorySegment of a string constant,
but this is not needed, since the constants will already have a segment of the right size. This is causing a failure
since Foreign::withSize requires an unchecked address as input.
This patch replaces the withSize call to an assertion on the size.
-------------
Commit messages:
- Do not try to resize constant string segments in TestClassGeneration.java
Changes: https://git.openjdk.java.net/panama-foreign/pull/120/files
Webrev: https://webrevs.openjdk.java.net/panama-foreign/120/webrev.00
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.java.net/panama-foreign/pull/120.diff
Fetch: git fetch https://git.openjdk.java.net/panama-foreign pull/120/head:pull/120
PR: https://git.openjdk.java.net/panama-foreign/pull/120
More information about the panama-dev
mailing list