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

Don't throw an exception when encountering a type with a flexible array member

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • repo-panama
    • repo-panama
    • tools

      Currently jextract throws an UnsopportedOpperationException when encountering a type that has a flexible array member.

      As a result of that no class is written for the type, and when loading the enclosing interface this throws a NoClassDefFoundError, prohibiting use of the entire header interface.

      We could mitigate this problem by emitting an undefined layout reference instead of throwing an exception, which would only make the type with the flexible array unusable, but still allow other things in the same interface to be used.

            jvernee Jorn Vernee
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: