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

Fix PageantConnector struct class visibility #86

Merged
merged 1 commit into from
Oct 13, 2021
Merged

Fix PageantConnector struct class visibility #86

merged 1 commit into from
Oct 13, 2021

Commits on Oct 13, 2021

  1. Fix PageantConnector struct class visibility

    The visibility of the struct classes need to be public otherwise the following exception will be thrown:
    
    ````txt
    Caused by: java.lang.IllegalAccessException: Class com.sun.jna.Structure can not access a member of class com.jcraft.jsch.PageantConnector$COPYDATASTRUCT64 with modifiers "public"
    	at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102)
    	at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:296)
    	at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:288)
    	at java.lang.reflect.Field.get(Field.java:390)
    	at com.sun.jna.Structure.getFieldValue(Structure.java:650)
    	... 101 more
    ````
    
    `protected` seems to work as well, but this might be due to the test setup.
    ST-DDT committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    4769196 View commit details
    Browse the repository at this point in the history