{"action":"opened","issue":{"url":"https://api.github.com/repos/INRIA/spoon/issues/2047","repository_url":"https://api.github.com/repos/INRIA/spoon","labels_url":"https://api.github.com/repos/INRIA/spoon/issues/2047/labels{/name}","comments_url":"https://api.github.com/repos/INRIA/spoon/issues/2047/comments","events_url":"https://api.github.com/repos/INRIA/spoon/issues/2047/events","html_url":"https://github.com/INRIA/spoon/issues/2047","id":330868408,"node_id":"MDU6SXNzdWUzMzA4Njg0MDg=","number":2047,"title":"New spoon.metamodel.Metamodel reports wrong derived, unsettable","user":{"login":"pvojtechovsky","id":23107345,"node_id":"MDQ6VXNlcjIzMTA3MzQ1","avatar_url":"https://avatars2.githubusercontent.com/u/23107345?v=4","gravatar_id":"","url":"https://api.github.com/users/pvojtechovsky","html_url":"https://github.com/pvojtechovsky","followers_url":"https://api.github.com/users/pvojtechovsky/followers","following_url":"https://api.github.com/users/pvojtechovsky/following{/other_user}","gists_url":"https://api.github.com/users/pvojtechovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/pvojtechovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvojtechovsky/subscriptions","organizations_url":"https://api.github.com/users/pvojtechovsky/orgs","repos_url":"https://api.github.com/users/pvojtechovsky/repos","events_url":"https://api.github.com/users/pvojtechovsky/events{/privacy}","received_events_url":"https://api.github.com/users/pvojtechovsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-09T09:01:12Z","updated_at":"2018-06-09T09:01:12Z","closed_at":null,"author_association":"COLLABORATOR","body":"I compared results returned by new `spoon.metamodel.Metamodel` with hardcoded Metamodel which was in PR #1686 and it found some problems.\r\n\r\nMany problems were fixed by readding contract \"unsettable implies derived\" from #1904, which was removed during Metamodel refactorings.\r\n\r\nHere are remaining problems\r\n```\r\nField CtInterface#modifier<java.util.Set<spoon.reflect.declaration.ModifierKind>>.derived hardcoded value = false but computed value is true\r\nField CtInterface#interface<java.util.Set<spoon.reflect.reference.CtTypeReference<? extends java.lang.Object>>>.derived hardcoded value = false but computed value is true\r\nField CtTypeParameter#modifier<java.util.Set<spoon.reflect.declaration.ModifierKind>>.unsettable hardcoded value = true but computed value is false\r\nField CtTypeParameter#superType<spoon.reflect.reference.CtTypeReference<? extends java.lang.Object>>.derived hardcoded value = false but computed value is true\r\nField CtConstructor#name<java.lang.String>.derived hardcoded value = true but computed value is false\r\nField CtConstructor#name<java.lang.String>.unsettable hardcoded value = true but computed value is false\r\nField CtAnonymousExecutable#name<java.lang.String>.derived hardcoded value = true but computed value is false\r\nField CtAnonymousExecutable#name<java.lang.String>.unsettable hardcoded value = true but computed value is false\r\nField CtWildcardReference#name<java.lang.String>.derived hardcoded value = true but computed value is false\r\nField CtWildcardReference#name<java.lang.String>.unsettable hardcoded value = true but computed value is false\r\nField CtEnum#label<java.lang.String>.derived hardcoded value = true but computed value is false\r\nField CtEnum#label<java.lang.String>.unsettable hardcoded value = true but computed value is false\r\nField CtEnum#modifier<java.util.Set<spoon.reflect.declaration.ModifierKind>>.derived hardcoded value = false but computed value is true\r\nField CtEnum#interface<java.util.Set<spoon.reflect.reference.CtTypeReference<? extends java.lang.Object>>>.derived hardcoded value = false but computed value is true\r\nField CtClass#label<java.lang.String>.derived hardcoded value = true but computed value is false\r\nField CtClass#label<java.lang.String>.unsettable hardcoded value = true but computed value is false\r\nField CtClass#modifier<java.util.Set<spoon.reflect.declaration.ModifierKind>>.derived hardcoded value = false but computed value is true\r\nField CtClass#superType<spoon.reflect.reference.CtTypeReference<? extends java.lang.Object>>.derived hardcoded value = false but computed value is true\r\nField CtClass#interface<java.util.Set<spoon.reflect.reference.CtTypeReference<? extends java.lang.Object>>>.derived hardcoded value = false but computed value is true\r\nField CtAnnotationType#modifier<java.util.Set<spoon.reflect.declaration.ModifierKind>>.derived hardcoded value = false but computed value is true\r\n```\r\n"}}
{"actor":{"display_login":"pvojtechovsky"}}