{"action":"opened","issue":{"url":"https://api.github.com/repos/Whiley/WhileyCompilerCollection/issues/3","repository_url":"https://api.github.com/repos/Whiley/WhileyCompilerCollection","labels_url":"https://api.github.com/repos/Whiley/WhileyCompilerCollection/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Whiley/WhileyCompilerCollection/issues/3/comments","events_url":"https://api.github.com/repos/Whiley/WhileyCompilerCollection/issues/3/events","html_url":"https://github.com/Whiley/WhileyCompilerCollection/issues/3","id":210904994,"number":3,"title":"Problem with Wy command-line options","user":{"login":"DavePearce","id":484459,"avatar_url":"https://avatars1.githubusercontent.com/u/484459?v=3","gravatar_id":"","url":"https://api.github.com/users/DavePearce","html_url":"https://github.com/DavePearce","followers_url":"https://api.github.com/users/DavePearce/followers","following_url":"https://api.github.com/users/DavePearce/following{/other_user}","gists_url":"https://api.github.com/users/DavePearce/gists{/gist_id}","starred_url":"https://api.github.com/users/DavePearce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavePearce/subscriptions","organizations_url":"https://api.github.com/users/DavePearce/orgs","repos_url":"https://api.github.com/users/DavePearce/repos","events_url":"https://api.github.com/users/DavePearce/events{/privacy}","received_events_url":"https://api.github.com/users/DavePearce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-28T21:19:13Z","updated_at":"2017-02-28T21:19:13Z","closed_at":null,"body":"There is a sporadic problem which occurs when supplying command-line arguments to  <code>wy</code>.  The following illustrates:\r\n\r\n<pre>\r\nwy compile --verify --wyaldir . test.whiley \r\nWARNING: version numbering unavailable\r\nException in thread \"main\" java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: wrong number of arguments\r\n\tat wycc.util.AbstractConfigurable.set(AbstractConfigurable.java:45)\r\n\tat wycc.WyMain.main(WyMain.java:57)\r\nCaused by: java.lang.IllegalArgumentException: wrong number of arguments\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat wycc.util.AbstractConfigurable.set(AbstractConfigurable.java:37)\r\n\t... 1 more\r\n</pre>\r\n\r\nThe reason its sporadic isn't exactly clear.  But, what is happening is that the tool is occasionally selecting the wrong method via reflection.  It's sporadic I think because the ordering of methods varies from one run to another."}}
{"actor":{"display_login":"DavePearce"}}