{"action":"created","issue":{"url":"https://api.github.com/repos/java-native-access/jna/issues/630","repository_url":"https://api.github.com/repos/java-native-access/jna","labels_url":"https://api.github.com/repos/java-native-access/jna/issues/630/labels{/name}","comments_url":"https://api.github.com/repos/java-native-access/jna/issues/630/comments","events_url":"https://api.github.com/repos/java-native-access/jna/issues/630/events","html_url":"https://github.com/java-native-access/jna/issues/630","id":146135551,"number":630,"title":"Use of ellipsis in ProxyObject","user":{"login":"SevenOf9Sleeper","id":7957388,"avatar_url":"https://avatars.githubusercontent.com/u/7957388?v=3","gravatar_id":"","url":"https://api.github.com/users/SevenOf9Sleeper","html_url":"https://github.com/SevenOf9Sleeper","followers_url":"https://api.github.com/users/SevenOf9Sleeper/followers","following_url":"https://api.github.com/users/SevenOf9Sleeper/following{/other_user}","gists_url":"https://api.github.com/users/SevenOf9Sleeper/gists{/gist_id}","starred_url":"https://api.github.com/users/SevenOf9Sleeper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SevenOf9Sleeper/subscriptions","organizations_url":"https://api.github.com/users/SevenOf9Sleeper/orgs","repos_url":"https://api.github.com/users/SevenOf9Sleeper/repos","events_url":"https://api.github.com/users/SevenOf9Sleeper/events{/privacy}","received_events_url":"https://api.github.com/users/SevenOf9Sleeper/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/java-native-access/jna/labels/feature%20request","name":"feature request","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-05T23:17:28Z","updated_at":"2016-04-06T20:41:51Z","closed_at":null,"body":"When methods from Microsofts COM interfaces are generated there are often very long methods:\r\nfor example in _Document.SaveAs():\r\n```\r\n@ComMethod\r\npublic void SaveAs(Object fileName, Object fileFormat, Object lockComments, Object password, Object addToRecentFiles, Object writePassword, Object readOnlyRecommended, Object embedTrueTypeFonts, Object saveNativePictureFormat, Object saveFormsData, Object saveAsAOCELetter, Object encoding, Object insertLineBreaks, Object allowSubstitutions, Object lineEnding, Object addBiDiMarks);\r\n```\r\nOk, now, you can shorten this method as you wishes:\r\n```\r\n@ComMethod\r\npublic void SaveAs(Object fileName);\r\n```\r\nThe ProxyObject is so cute to deal with this shortened method.\r\nBut perhaps you now find out, that you need the next parameter: fileFormat. So: you must add the\r\nparameter and perhaps correct the former calls with the one parameter...\r\n\r\nSo my question is: would it not much better if we can use the ellipsis feature from java to generate an additional method like this:\r\n```\r\n@ComMethod\r\npublic void SaveAs(Object... someArgs);\r\n```\r\nNow we can call the method with as many parameters as we wish. :-)\r\n\r\nAny opinions to this? Would it be a problem, when you want to transfer real arrays as parameters? But when I am right, then there is no SAFEARRAY-handling in the COM.util.Convert class (so far)."},"comment":{"url":"https://api.github.com/repos/java-native-access/jna/issues/comments/206556944","html_url":"https://github.com/java-native-access/jna/issues/630#issuecomment-206556944","issue_url":"https://api.github.com/repos/java-native-access/jna/issues/630","id":206556944,"user":{"login":"SevenOf9Sleeper","id":7957388,"avatar_url":"https://avatars.githubusercontent.com/u/7957388?v=3","gravatar_id":"","url":"https://api.github.com/users/SevenOf9Sleeper","html_url":"https://github.com/SevenOf9Sleeper","followers_url":"https://api.github.com/users/SevenOf9Sleeper/followers","following_url":"https://api.github.com/users/SevenOf9Sleeper/following{/other_user}","gists_url":"https://api.github.com/users/SevenOf9Sleeper/gists{/gist_id}","starred_url":"https://api.github.com/users/SevenOf9Sleeper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SevenOf9Sleeper/subscriptions","organizations_url":"https://api.github.com/users/SevenOf9Sleeper/orgs","repos_url":"https://api.github.com/users/SevenOf9Sleeper/repos","events_url":"https://api.github.com/users/SevenOf9Sleeper/events{/privacy}","received_events_url":"https://api.github.com/users/SevenOf9Sleeper/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T20:41:51Z","updated_at":"2016-04-06T20:41:51Z","body":"Very well... ;-)   Bought."}}