{"action":"created","issue":{"url":"https://api.github.com/repos/ELTE-Soft/txtUML/issues/42","labels_url":"https://api.github.com/repos/ELTE-Soft/txtUML/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/ELTE-Soft/txtUML/issues/42/comments","events_url":"https://api.github.com/repos/ELTE-Soft/txtUML/issues/42/events","html_url":"https://github.com/ELTE-Soft/txtUML/issues/42","id":112243259,"number":42,"title":"The code generated from effect wont compile","user":{"login":"nboldi","id":2959869,"avatar_url":"https://avatars.githubusercontent.com/u/2959869?v=3","gravatar_id":"","url":"https://api.github.com/users/nboldi","html_url":"https://github.com/nboldi","followers_url":"https://api.github.com/users/nboldi/followers","following_url":"https://api.github.com/users/nboldi/following{/other_user}","gists_url":"https://api.github.com/users/nboldi/gists{/gist_id}","starred_url":"https://api.github.com/users/nboldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nboldi/subscriptions","organizations_url":"https://api.github.com/users/nboldi/orgs","repos_url":"https://api.github.com/users/nboldi/repos","events_url":"https://api.github.com/users/nboldi/events{/privacy}","received_events_url":"https://api.github.com/users/nboldi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ELTE-Soft/txtUML/labels/category:XtxtUML","name":"category:XtxtUML","color":"fbca04"},{"url":"https://api.github.com/repos/ELTE-Soft/txtUML/labels/prio:medium","name":"prio:medium","color":"eb6420"},{"url":"https://api.github.com/repos/ELTE-Soft/txtUML/labels/type:bug","name":"type:bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"djnemeth","id":13290204,"avatar_url":"https://avatars.githubusercontent.com/u/13290204?v=3","gravatar_id":"","url":"https://api.github.com/users/djnemeth","html_url":"https://github.com/djnemeth","followers_url":"https://api.github.com/users/djnemeth/followers","following_url":"https://api.github.com/users/djnemeth/following{/other_user}","gists_url":"https://api.github.com/users/djnemeth/gists{/gist_id}","starred_url":"https://api.github.com/users/djnemeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djnemeth/subscriptions","organizations_url":"https://api.github.com/users/djnemeth/orgs","repos_url":"https://api.github.com/users/djnemeth/repos","events_url":"https://api.github.com/users/djnemeth/events{/privacy}","received_events_url":"https://api.github.com/users/djnemeth/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-19T22:07:43Z","updated_at":"2015-10-23T08:16:23Z","closed_at":"2015-10-23T08:16:23Z","body":"The xtxtuml code:\r\n```\r\n\t\tstate finalstate {\r\n\t\t\tentry {\r\n\t\t\t\tif ((this->PerformanceTestModel.AB.a).isEmpty()) {\r\n\t\t\t\t} else {\r\n\t\t\t\t\tPerformanceTestModel.A a = (this->PerformanceTestModel.AB.a).selectAny();\r\n\t\t\t\t\tunlink(PerformanceTestModel.AB.a, a, AB.b, PerformanceTestModel.B.this);\r\n\t\t\t\t\ta.childTerminated();\r\n\t\t\t\t}\r\n\t\t\t\tdelete(PerformanceTestModel.B.this);\r\n\t\t\t}\r\n\t\t}\r\n```\r\n\r\nThe generated code:\r\n```\r\n    public class finalstate extends StateMachine.State {\r\n      @Override\r\n      public void entry() {\r\n        Collection<PerformanceTestModel.A> _ralfassocnavexpression = this.assoc(PerformanceTestModel.AB.a.class);\r\n        boolean _isEmpty = _ralfassocnavexpression.isEmpty();\r\n        if (_isEmpty) {\r\n        } else {\r\n          Collection<PerformanceTestModel.A> _ralfassocnavexpression_1 = this.assoc(PerformanceTestModel.AB.a.class);\r\n          PerformanceTestModel.A a = _ralfassocnavexpression_1.selectAny();\r\n          Action.<PerformanceTestModel.A, PerformanceTestModel.B>unlink(PerformanceTestModel.AB.a.class, a, PerformanceTestModel.AB.b.class, B.this);\r\n          a.childTerminated();\r\n        }\r\n        Action.delete(B.this);\r\n      }\r\n    }\r\n```\r\n\r\nWhere this should be qualified but it isn't.\r\n"},"comment":{"url":"https://api.github.com/repos/ELTE-Soft/txtUML/issues/comments/150505565","html_url":"https://github.com/ELTE-Soft/txtUML/issues/42#issuecomment-150505565","issue_url":"https://api.github.com/repos/ELTE-Soft/txtUML/issues/42","id":150505565,"user":{"login":"djnemeth","id":13290204,"avatar_url":"https://avatars.githubusercontent.com/u/13290204?v=3","gravatar_id":"","url":"https://api.github.com/users/djnemeth","html_url":"https://github.com/djnemeth","followers_url":"https://api.github.com/users/djnemeth/followers","following_url":"https://api.github.com/users/djnemeth/following{/other_user}","gists_url":"https://api.github.com/users/djnemeth/gists{/gist_id}","starred_url":"https://api.github.com/users/djnemeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djnemeth/subscriptions","organizations_url":"https://api.github.com/users/djnemeth/orgs","repos_url":"https://api.github.com/users/djnemeth/repos","events_url":"https://api.github.com/users/djnemeth/events{/privacy}","received_events_url":"https://api.github.com/users/djnemeth/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T08:16:23Z","updated_at":"2015-10-23T08:16:23Z","body":"This issue was caused by an unfortunate combination of missing typecheck for the navigation expression and the Java-like `this` usage. See #22 and #26.\r\n\r\nAs the type validation for custom expressions is implemented now, the problem becames an equivalent of #26, therefore I close the issue."}}