{"action":"created","issue":{"url":"https://api.github.com/repos/immutables/immutables/issues/436","repository_url":"https://api.github.com/repos/immutables/immutables","labels_url":"https://api.github.com/repos/immutables/immutables/issues/436/labels{/name}","comments_url":"https://api.github.com/repos/immutables/immutables/issues/436/comments","events_url":"https://api.github.com/repos/immutables/immutables/issues/436/events","html_url":"https://github.com/immutables/immutables/issues/436","id":174495110,"number":436,"title":"@Value.Enclosing, @Value.Parameter, and nested implementations","user":{"login":"henryptung","id":1700335,"avatar_url":"https://avatars.githubusercontent.com/u/1700335?v=3","gravatar_id":"","url":"https://api.github.com/users/henryptung","html_url":"https://github.com/henryptung","followers_url":"https://api.github.com/users/henryptung/followers","following_url":"https://api.github.com/users/henryptung/following{/other_user}","gists_url":"https://api.github.com/users/henryptung/gists{/gist_id}","starred_url":"https://api.github.com/users/henryptung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryptung/subscriptions","organizations_url":"https://api.github.com/users/henryptung/orgs","repos_url":"https://api.github.com/users/henryptung/repos","events_url":"https://api.github.com/users/henryptung/events{/privacy}","received_events_url":"https://api.github.com/users/henryptung/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/immutables/immutables/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/immutables/immutables/labels/completed","name":"completed","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/immutables/immutables/milestones/45","html_url":"https://github.com/immutables/immutables/milestones/2.3","labels_url":"https://api.github.com/repos/immutables/immutables/milestones/45/labels","id":1957239,"number":45,"title":"2.3","description":"","creator":{"login":"elucash","id":1692611,"avatar_url":"https://avatars.githubusercontent.com/u/1692611?v=3","gravatar_id":"","url":"https://api.github.com/users/elucash","html_url":"https://github.com/elucash","followers_url":"https://api.github.com/users/elucash/followers","following_url":"https://api.github.com/users/elucash/following{/other_user}","gists_url":"https://api.github.com/users/elucash/gists{/gist_id}","starred_url":"https://api.github.com/users/elucash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elucash/subscriptions","organizations_url":"https://api.github.com/users/elucash/orgs","repos_url":"https://api.github.com/users/elucash/repos","events_url":"https://api.github.com/users/elucash/events{/privacy}","received_events_url":"https://api.github.com/users/elucash/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":2,"state":"open","created_at":"2016-08-23T06:40:02Z","updated_at":"2016-09-07T18:20:01Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-09-01T11:00:33Z","updated_at":"2016-09-07T18:20:01Z","closed_at":"2016-09-07T18:20:01Z","body":"The following source, when compiled using Immutables 2.2.12:\r\n\r\n```java\r\nimport org.immutables.value.Value;\r\n\r\n@Value.Enclosing\r\npublic interface TestEnclosingNested {\r\n\r\n    @Value.Immutable\r\n    interface Impl extends TestEnclosingNested {\r\n\r\n        @Value.Parameter\r\n        int value();\r\n\r\n    }\r\n}\r\n```\r\n\r\nproduces the following generated source snippet:\r\n```java\r\n    /**\r\n     * Construct a new immutable {@code Impl} instance.\r\n     * @param value The value for the {@code value} attribute\r\n     * @return An immutable Impl instance\r\n     */\r\n    public static ImmutableTestEnclosingNested.Impl of(int value) {\r\n      return new Impl(value);\r\n    }\r\n```\r\n\r\nAs noted by the two different ways to reference `Impl`, the latter reference binds to `TestEnclosingNested.Impl`, instead of `ImmutableTestEnclosingNested.Impl`. This behavior seems to have improved between 2.2.8 and 2.2.12 (there were more similar errors before), but still not perfect."},"comment":{"url":"https://api.github.com/repos/immutables/immutables/issues/comments/245371305","html_url":"https://github.com/immutables/immutables/issues/436#issuecomment-245371305","issue_url":"https://api.github.com/repos/immutables/immutables/issues/436","id":245371305,"user":{"login":"elucash","id":1692611,"avatar_url":"https://avatars.githubusercontent.com/u/1692611?v=3","gravatar_id":"","url":"https://api.github.com/users/elucash","html_url":"https://github.com/elucash","followers_url":"https://api.github.com/users/elucash/followers","following_url":"https://api.github.com/users/elucash/following{/other_user}","gists_url":"https://api.github.com/users/elucash/gists{/gist_id}","starred_url":"https://api.github.com/users/elucash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elucash/subscriptions","organizations_url":"https://api.github.com/users/elucash/orgs","repos_url":"https://api.github.com/users/elucash/repos","events_url":"https://api.github.com/users/elucash/events{/privacy}","received_events_url":"https://api.github.com/users/elucash/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T18:20:01Z","updated_at":"2016-09-07T18:20:01Z","body":"this problem is fixed in newly released 2.3. Please, let us know if there are other similar problems."}}
{"actor":{"display_login":"elucash"}}