{"action":"opened","issue":{"url":"https://api.github.com/repos/google/guice/issues/1167","repository_url":"https://api.github.com/repos/google/guice","labels_url":"https://api.github.com/repos/google/guice/issues/1167/labels{/name}","comments_url":"https://api.github.com/repos/google/guice/issues/1167/comments","events_url":"https://api.github.com/repos/google/guice/issues/1167/events","html_url":"https://github.com/google/guice/issues/1167","id":307262589,"number":1167,"title":"Strange behavior on different JVM","user":{"login":"larinme","id":11999124,"avatar_url":"https://avatars2.githubusercontent.com/u/11999124?v=4","gravatar_id":"","url":"https://api.github.com/users/larinme","html_url":"https://github.com/larinme","followers_url":"https://api.github.com/users/larinme/followers","following_url":"https://api.github.com/users/larinme/following{/other_user}","gists_url":"https://api.github.com/users/larinme/gists{/gist_id}","starred_url":"https://api.github.com/users/larinme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larinme/subscriptions","organizations_url":"https://api.github.com/users/larinme/orgs","repos_url":"https://api.github.com/users/larinme/repos","events_url":"https://api.github.com/users/larinme/events{/privacy}","received_events_url":"https://api.github.com/users/larinme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-21T14:14:41Z","updated_at":"2018-03-21T14:14:41Z","closed_at":null,"author_association":"NONE","body":"Hello everyone!\r\n\r\nI have got a problem with using Google Guava in test project. I have configured a module with binding singletone implementation to an interface with wrong module configuration. Something like below described:\r\n>public interface Helper {\r\n> void a();\r\n>}\r\n\r\nand implementation:\r\n>public class HelperImpl implements Helper{\r\n>  public void a() { ...}\r\n>private HelperImpl () {}\r\n>private static Helper instance = new HelperImpl();\r\n>\r\n> public HelperImpl getInstance(){\r\n>       return instance;\r\n>      }\r\n>}\r\n\r\nand Module:\r\n> bind(Helper.class).to(HelperImpl.class);\r\n\r\n**Expected behavior:** Could not find a suitable constructor in Helper. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.\r\n\r\n**Actual behavior:** Application started on local JVM  is instantiated without error(_I cant understand why there is no error?_). Application started on remote JVM  is failed with expected error message(_correct behavior_)\r\n\r\nAre there ideas why it is so unpredictable? May be local JVM has another options?"}}
{"actor":{"display_login":"larinme"}}