{"action":"created","issue":{"url":"https://api.github.com/repos/clun/ff4j/issues/102","repository_url":"https://api.github.com/repos/clun/ff4j","labels_url":"https://api.github.com/repos/clun/ff4j/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/clun/ff4j/issues/102/comments","events_url":"https://api.github.com/repos/clun/ff4j/issues/102/events","html_url":"https://github.com/clun/ff4j/issues/102","id":142308785,"number":102,"title":"AOP @Flip(alterClass) does not work on cglib enhanced classes","user":{"login":"razvanfromoz","id":4855733,"avatar_url":"https://avatars.githubusercontent.com/u/4855733?v=3","gravatar_id":"","url":"https://api.github.com/users/razvanfromoz","html_url":"https://github.com/razvanfromoz","followers_url":"https://api.github.com/users/razvanfromoz/followers","following_url":"https://api.github.com/users/razvanfromoz/following{/other_user}","gists_url":"https://api.github.com/users/razvanfromoz/gists{/gist_id}","starred_url":"https://api.github.com/users/razvanfromoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razvanfromoz/subscriptions","organizations_url":"https://api.github.com/users/razvanfromoz/orgs","repos_url":"https://api.github.com/users/razvanfromoz/repos","events_url":"https://api.github.com/users/razvanfromoz/events{/privacy}","received_events_url":"https://api.github.com/users/razvanfromoz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clun/ff4j/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"clun","id":726536,"avatar_url":"https://avatars.githubusercontent.com/u/726536?v=3","gravatar_id":"","url":"https://api.github.com/users/clun","html_url":"https://github.com/clun","followers_url":"https://api.github.com/users/clun/followers","following_url":"https://api.github.com/users/clun/following{/other_user}","gists_url":"https://api.github.com/users/clun/gists{/gist_id}","starred_url":"https://api.github.com/users/clun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clun/subscriptions","organizations_url":"https://api.github.com/users/clun/orgs","repos_url":"https://api.github.com/users/clun/repos","events_url":"https://api.github.com/users/clun/events{/privacy}","received_events_url":"https://api.github.com/users/clun/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-03-21T10:29:24Z","updated_at":"2016-03-22T17:05:52Z","closed_at":null,"body":"i think there's a problem at least here (when the alterclass is cglib enhanced)\r\nhttps://github.com/clun/ff4j/blob/master/ff4j-aop/src/main/java/org/ff4j/aop/FeatureAdvisor.java\r\n\r\n     // expected to be cglib proxy then, which is simply a specialized class\r\n     return proxy.getClass().equals(alterClass);\r\n\r\nthe proxy(some enhanced class) is different from the alter class (the original class)\r\n\r\nthere's probably an issue on FeatureAutoProxy ( when @Primary bean is cglib enhanced)\r\nin getAdvicesAndAdvisorsForBean the beanClass.getInterfaces for a cglib enhanced class do not contain the original class implemented interfaces but (o.s.aop.SpringProxy, o.s.aop.framework.Advised,o.s.cglib.proxy.Factory)\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/32094857-aop-flip-alterclass-does-not-work-on-cglib-enhanced-classes?utm_campaign=plugin&utm_content=tracker%2F1038413&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1038413&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/clun/ff4j/issues/comments/199909848","html_url":"https://github.com/clun/ff4j/issues/102#issuecomment-199909848","issue_url":"https://api.github.com/repos/clun/ff4j/issues/102","id":199909848,"user":{"login":"clun","id":726536,"avatar_url":"https://avatars.githubusercontent.com/u/726536?v=3","gravatar_id":"","url":"https://api.github.com/users/clun","html_url":"https://github.com/clun","followers_url":"https://api.github.com/users/clun/followers","following_url":"https://api.github.com/users/clun/following{/other_user}","gists_url":"https://api.github.com/users/clun/gists{/gist_id}","starred_url":"https://api.github.com/users/clun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clun/subscriptions","organizations_url":"https://api.github.com/users/clun/orgs","repos_url":"https://api.github.com/users/clun/repos","events_url":"https://api.github.com/users/clun/events{/privacy}","received_events_url":"https://api.github.com/users/clun/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T17:05:52Z","updated_at":"2016-03-22T17:05:52Z","body":"You're right that's an issue. I will make this work. It's the third time i struggle with cglib beans :)\r\n\r\n"}}