{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/xtext-extras/issues/92","repository_url":"https://api.github.com/repos/eclipse/xtext-extras","labels_url":"https://api.github.com/repos/eclipse/xtext-extras/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/xtext-extras/issues/92/comments","events_url":"https://api.github.com/repos/eclipse/xtext-extras/issues/92/events","html_url":"https://github.com/eclipse/xtext-extras/issues/92","id":197564812,"number":92,"title":"Fix JavaResource ","user":{"login":"cdietrich","id":238736,"avatar_url":"https://avatars.githubusercontent.com/u/238736?v=3","gravatar_id":"","url":"https://api.github.com/users/cdietrich","html_url":"https://github.com/cdietrich","followers_url":"https://api.github.com/users/cdietrich/followers","following_url":"https://api.github.com/users/cdietrich/following{/other_user}","gists_url":"https://api.github.com/users/cdietrich/gists{/gist_id}","starred_url":"https://api.github.com/users/cdietrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdietrich/subscriptions","organizations_url":"https://api.github.com/users/cdietrich/orgs","repos_url":"https://api.github.com/users/cdietrich/repos","events_url":"https://api.github.com/users/cdietrich/events{/privacy}","received_events_url":"https://api.github.com/users/cdietrich/received_events","type":"User","site_admin":false},"labels":[{"id":385480226,"url":"https://api.github.com/repos/eclipse/xtext-extras/labels/bug","name":"bug","color":"e6bebe","default":true},{"id":454954790,"url":"https://api.github.com/repos/eclipse/xtext-extras/labels/confirmed","name":"confirmed","color":"128a8a","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/eclipse/xtext-extras/milestones/2","html_url":"https://github.com/eclipse/xtext-extras/milestone/2","labels_url":"https://api.github.com/repos/eclipse/xtext-extras/milestones/2/labels","id":2051441,"number":2,"title":"release_v2.11","description":"Xtext 2.11.0","creator":{"login":"spoenemann","id":4067210,"avatar_url":"https://avatars.githubusercontent.com/u/4067210?v=3","gravatar_id":"","url":"https://api.github.com/users/spoenemann","html_url":"https://github.com/spoenemann","followers_url":"https://api.github.com/users/spoenemann/followers","following_url":"https://api.github.com/users/spoenemann/following{/other_user}","gists_url":"https://api.github.com/users/spoenemann/gists{/gist_id}","starred_url":"https://api.github.com/users/spoenemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spoenemann/subscriptions","organizations_url":"https://api.github.com/users/spoenemann/orgs","repos_url":"https://api.github.com/users/spoenemann/repos","events_url":"https://api.github.com/users/spoenemann/events{/privacy}","received_events_url":"https://api.github.com/users/spoenemann/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":6,"state":"open","created_at":"2016-10-06T07:47:35Z","updated_at":"2016-12-26T09:28:30Z","due_on":"2017-01-24T08:00:00Z","closed_at":null},"comments":6,"created_at":"2016-12-26T09:28:08Z","updated_at":"2016-12-26T19:14:51Z","closed_at":null,"body":"The Changes to Java Resource in https://github.com/eclipse/xtext-extras/commit/11386fcc848450f436dee0da528b7c8355d2027b\r\n\r\nmake tests in xtext-xtend fail (e.g. XtendIncrementalBuilderTest)\r\nand make the build of xtext-extras itself fail\r\n\r\n```\r\nCaused by: java.lang.NullPointerException\r\n        at org.eclipse.xtext.common.types.access.impl.AbstractClassMirror.getEObject(AbstractClassMirror.java:69)\r\n        at org.eclipse.xtext.common.types.access.TypeResource.getEObject(TypeResource.java:90)\r\n        at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:223)\r\n        at org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess.getIndexedJvmType(IndexedJvmTypeAccess.java:79)\r\n        at org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess.getIndexedJvmType(IndexedJvmTypeAccess.java:69)\r\n        at org.eclipse.xtext.java.resource.JavaResource.resolveJavaObjectURIProxy(JavaResource.java:189)\r\n        at org.eclipse.xtext.common.types.impl.JvmAnnotationValueImplCustom.eResolveProxy(JvmAnnotationValueImplCustom.java:22)\r\n        at org.eclipse.xtext.common.types.impl.JvmAnnotationValueImpl.getOperation(JvmAnnotationValueImpl.java:78)\r\n        at org.eclipse.xtext.common.types.impl.JvmAnnotationValueImpl.eGet(JvmAnnotationValueImpl.java:134)\r\n        at org.eclipse.xtext.common.types.impl.JvmBooleanAnnotationValueImpl.eGet(JvmBooleanAnnotationValueImpl.java:94)\r\n        at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1011)\r\n        at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1003)\r\n        at org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl.hasNext(EContentsEList.java:439)\r\n        at org.eclipse.xtext.EcoreUtil2.resolveCrossReferences(EcoreUtil2.java:518)\r\n        at org.eclipse.xtext.EcoreUtil2.resolveAll(EcoreUtil2.java:487)\r\n        at org.eclipse.xtext.EcoreUtil2.resolveLazyCrossReferences(EcoreUtil2.java:500)\r\n        at org.eclipse.xtext.build.IncrementalBuilder$InternalStatefulIncrementalBuilder.lambda$launch$6(IncrementalBuilder.java:224)\r\n        at org.eclipse.xtext.build.ClusteringStorageAwareResourceLoader.lambda$executeClustered$1(ClusteringStorageAwareResourceLoader.java:86)\r\n        at org.eclipse.xtext.xbase.lib.internal.FunctionDelegate.apply(FunctionDelegate.java:42)\r\n        at com.google.common.collect.Lists$TransformingRandomAccessList$1.transform(Lists.java:617)\r\n        at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)\r\n        at com.google.common.collect.Iterables.addAll(Iterables.java:352)\r\n        at org.eclipse.xtext.build.ClusteringStorageAwareResourceLoader.executeClustered(ClusteringStorageAwareResourceLoader.java:89)\r\n        at org.eclipse.xtext.build.BuildContext.executeClustered(BuildContext.java:56)\r\n        at org.eclipse.xtext.build.IncrementalBuilder$InternalStatefulIncrementalBuilder.launch(IncrementalBuilder.java:248)\r\n        at org.eclipse.xtext.build.IncrementalBuilder.build(IncrementalBuilder.java:419)\r\n        at org.eclipse.xtext.build.IncrementalBuilder.build(IncrementalBuilder.java:400)\r\n        at org.xtext.gradle.builder.XtextGradleBuilder.doBuild(XtextGradleBuilder.java:360)\r\n        at org.xtext.gradle.builder.XtextGradleBuilder.build(XtextGradleBuilder.java:206)\r\n        at org.xtext.gradle.tasks.XtextGenerate.generate(XtextGenerate.java:149)\r\n        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)\r\n        at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:163)\r\n```"},"comment":{"url":"https://api.github.com/repos/eclipse/xtext-extras/issues/comments/269235745","html_url":"https://github.com/eclipse/xtext-extras/issues/92#issuecomment-269235745","issue_url":"https://api.github.com/repos/eclipse/xtext-extras/issues/92","id":269235745,"user":{"login":"cdietrich","id":238736,"avatar_url":"https://avatars.githubusercontent.com/u/238736?v=3","gravatar_id":"","url":"https://api.github.com/users/cdietrich","html_url":"https://github.com/cdietrich","followers_url":"https://api.github.com/users/cdietrich/followers","following_url":"https://api.github.com/users/cdietrich/following{/other_user}","gists_url":"https://api.github.com/users/cdietrich/gists{/gist_id}","starred_url":"https://api.github.com/users/cdietrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdietrich/subscriptions","organizations_url":"https://api.github.com/users/cdietrich/orgs","repos_url":"https://api.github.com/users/cdietrich/repos","events_url":"https://api.github.com/users/cdietrich/events{/privacy}","received_events_url":"https://api.github.com/users/cdietrich/received_events","type":"User","site_admin":false},"created_at":"2016-12-26T19:14:51Z","updated_at":"2016-12-26T19:14:51Z","body":"or we do the op check twice\r\n\r\n```\r\ntry {\r\n        \t\t\t\tval fragment = proxy.eProxyURI.fragment\r\n        \t\t\t\tval isOp = fragment === null || fragment.contains(\"()\")\r\n        \t\t\t\tvar result = access.getIndexedJvmType(if (isOp) proxy.eProxyURI().trimFragment else proxy.eProxyURI(), getResourceSet());\r\n        \t\t\t\tif (result instanceof JvmDeclaredType && isOp) {\r\n        \t\t\t\t    result = new JavaFragmentProvider().getEObject(result.eResource, proxy.eProxyURI.fragment, new Fallback() {\r\n                                override getEObject(String fragment) {\r\n                                    return null;\r\n                                }\r\n                                \r\n                                override getFragment(EObject obj) {\r\n                                    return null;\r\n                                }\r\n                            });\r\n                            if (result !== null)\r\n        \t\t\t\t\t   return result;\r\n        \t\t\t\t} else if (result !== null) {\r\n        \t\t\t\t\treturn result;\r\n        \t\t\t\t}\r\n        \t\t\t} catch(UnknownNestedTypeException e) {\r\n        \t\t\t\treturn proxy;\r\n        \t\t\t}\r\n```"}}
{"actor":{"display_login":"cdietrich"}}