Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8334708

FFM: two javadoc problems

XMLWordPrintable

        I found two problems in the FFM javadocs:
        1. Linker: https://github.com/openjdk/jdk/blob/880e458a1072589ae199cc9204dcce9eab0f4eaa/src/java.base/share/classes/java/lang/foreign/Linker.java#L225 the padding is wrong, it should be 4 instead.
        2. MemoryLayout: https://github.com/openjdk/jdk/blob/880e458a1072589ae199cc9204dcce9eab0f4eaa/src/java.base/share/classes/java/lang/foreign/MemoryLayout.java#L372 segment is not defined before, it's supposed to reference the points variable.

        I also noticed that wrong paddingLayout usage in the Snippets file (https://github.com/openjdk/jdk/blob/bdd96604ae55ba0cd3cd3363e2ba44205d8aa3aa/src/java.base/share/classes/java/lang/foreign/snippet-files/Snippets.java#L338) but those seem to be unused. Maybe they should be removed?

              hgreule Hannes Greule
              hgreule Hannes Greule
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: