{"action":"created","issue":{"url":"https://api.github.com/repos/diverse-project/k3/issues/42","repository_url":"https://api.github.com/repos/diverse-project/k3","labels_url":"https://api.github.com/repos/diverse-project/k3/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/diverse-project/k3/issues/42/comments","events_url":"https://api.github.com/repos/diverse-project/k3/issues/42/events","html_url":"https://github.com/diverse-project/k3/issues/42","id":146836439,"number":42,"title":"static attribute in aspect doesn't work anymore","user":{"login":"dvojtise","id":661468,"avatar_url":"https://avatars.githubusercontent.com/u/661468?v=3","gravatar_id":"","url":"https://api.github.com/users/dvojtise","html_url":"https://github.com/dvojtise","followers_url":"https://api.github.com/users/dvojtise/followers","following_url":"https://api.github.com/users/dvojtise/following{/other_user}","gists_url":"https://api.github.com/users/dvojtise/gists{/gist_id}","starred_url":"https://api.github.com/users/dvojtise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvojtise/subscriptions","organizations_url":"https://api.github.com/users/dvojtise/orgs","repos_url":"https://api.github.com/users/dvojtise/repos","events_url":"https://api.github.com/users/dvojtise/events{/privacy}","received_events_url":"https://api.github.com/users/dvojtise/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/diverse-project/k3/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-08T07:03:54Z","updated_at":"2016-04-08T12:16:05Z","closed_at":null,"body":"when extracting the hello world example that is bundled with k3\r\nthere is a example of the use of a static attribute. but it has an error when compiling\r\n\r\nit seems that the accessors aren't generated anymore."},"comment":{"url":"https://api.github.com/repos/diverse-project/k3/issues/comments/207406162","html_url":"https://github.com/diverse-project/k3/issues/42#issuecomment-207406162","issue_url":"https://api.github.com/repos/diverse-project/k3/issues/42","id":207406162,"user":{"login":"fcoulon","id":4034345,"avatar_url":"https://avatars.githubusercontent.com/u/4034345?v=3","gravatar_id":"","url":"https://api.github.com/users/fcoulon","html_url":"https://github.com/fcoulon","followers_url":"https://api.github.com/users/fcoulon/followers","following_url":"https://api.github.com/users/fcoulon/following{/other_user}","gists_url":"https://api.github.com/users/fcoulon/gists{/gist_id}","starred_url":"https://api.github.com/users/fcoulon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcoulon/subscriptions","organizations_url":"https://api.github.com/users/fcoulon/orgs","repos_url":"https://api.github.com/users/fcoulon/repos","events_url":"https://api.github.com/users/fcoulon/events{/privacy}","received_events_url":"https://api.github.com/users/fcoulon/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T12:16:05Z","updated_at":"2016-04-08T12:16:05Z","body":"This example is wrong:\r\n```\r\n@Aspect(className=typeof(EPackage))\r\nclass EPackageAspect { \r\n\t\r\n\t//i has a value persistence is static\r\n\tstatic int i = 0;\r\n\t\r\n\t//j is local\r\n\tint j;\r\n\r\n\tpublic def void start(int increment) {\r\n\t\t_self.i= _self.i + increment\r\n\t\tprintln(\"i=\"+_self.i)\r\n\t\t_self.j = _self.j + increment;\r\n\t\tprintln(\"j=\"+_self.j)\r\n\t\t\r\n\t}\r\n\r\n\tpublic def  void sayHello() {\r\n\t\tprintln(\"Hello, my name is \"+_self.name)\t\t\r\n\t}\r\n\r\n}\r\n```\r\nWe can't write`_self.i` because 'i' is static.\r\n\r\nWe should write:\r\n```\r\n@Aspect(className=typeof(EPackage))\r\nclass EPackageAspect { \r\n\t\r\n\t//i has a value persistence is static\r\n\tstatic int i = 0;\r\n\t\r\n\t//j is local\r\n\tint j;\r\n\r\n\tpublic def void start(int increment) {\r\n\t\tEPackageAspect.i= EPackageAspect.i + increment\r\n\t\tprintln(\"i=\"+EPackageAspect.i)\r\n\t\t_self.j = _self.j + increment;\r\n\t\tprintln(\"j=\"+_self.j)\r\n\t\t\r\n\t}\r\n\r\n\tpublic def  void sayHello() {\r\n\t\tprintln(\"Hello, my name is \"+_self.name)\t\t\r\n\t}\r\n\r\n}\r\n```"}}