{"issue":{"created_at":"2011-11-24T05:30:24Z","state":"open","updated_at":"2011-11-24T05:39:27Z","user":{"gravatar_id":"3c529eefda2562e51056696466fdd0d8","id":271604,"url":"https://api.github.com/users/abryzak","login":"abryzak","avatar_url":"https://secure.gravatar.com/avatar/3c529eefda2562e51056696466fdd0d8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":1,"body":"After upgrading to the latest lombok-pg, `@Cleanup` is broken for classes that have a `close` method but don't implement `Closeable`. The following test demonstrates that `close` isn't called.\r\n\r\n```java\r\nimport lombok.Cleanup;\r\n\r\npublic class CleanupTest {\r\n\r\n    public void close() {\r\n        System.out.println(\"close called\");\r\n    }\r\n    \r\n    public static void main(String[] args) throws Exception {\r\n        @Cleanup\r\n        CleanupTest closeable = new CleanupTest();\r\n    }\r\n\r\n}\r\n```\r\n\r\nAs a workaround, you can pass a `\"close\"` value to the annotation.","assignee":null,"id":2337578,"number":55,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"@Cleanup without value is broken for non-Closeable classes","closed_at":null,"html_url":"https://github.com/peichhorn/lombok-pg/issues/55","milestone":null,"url":"https://api.github.com/repos/peichhorn/lombok-pg/issues/55"},"action":"created","comment":{"created_at":"2011-11-24T05:39:27Z","updated_at":"2011-11-24T05:39:27Z","user":{"gravatar_id":"3c529eefda2562e51056696466fdd0d8","id":271604,"url":"https://api.github.com/users/abryzak","login":"abryzak","avatar_url":"https://secure.gravatar.com/avatar/3c529eefda2562e51056696466fdd0d8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"It also will complain about `IOException` not being caught.","id":2858527,"url":"https://api.github.com/repos/peichhorn/lombok-pg/issues/comments/2858527"}}