Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve/Fix direct mapping support #919

Merged

Commits on Feb 5, 2018

  1. Direct mapping does not support wrapper mappings

    For direct mapped methods the java value is directly passed to the C
    side. For wrappers this means, that the object pointer is passed and
    not the primitive values.
    
    This changeset removes the mappings for the Wrapper classes and makes
    it possible to use a type converter to make the call possible, at the
    cost of higher calling costs.
    
    Closes: java-native-access#918
    matthiasblaesing committed Feb 5, 2018
    Configuration menu
    Copy the full SHA
    73b7763 View commit details
    Browse the repository at this point in the history
  2. A NULL pointer passed to a IntegerType based direct mapping causes JV…

    …M crash
    
    When a IntergetType based type is defined in a direct mapping and a
    NullPointer is passed to that call, a method call is tried on that
    NullPointer via JNI, resulting in a JVM crash.
    
    This changeset replaces the value with "0" if a NULL pointer is passed
    and adds unittests for the possible calling conventions.
    
    Closes: java-native-access#905
    matthiasblaesing committed Feb 5, 2018
    Configuration menu
    Copy the full SHA
    1a2a94f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0c0c062 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6b4b978 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7a79c0b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6af211f View commit details
    Browse the repository at this point in the history