Bug 500815 - Error logged from API Tools Core
Summary: Error logged from API Tools Core
Status: RESOLVED WORKSFORME
Alias: None
Product: PDE
Classification: Eclipse Project
Component: API Tools (show other bugs)
Version: 4.5   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.7   Edit
Assignee: Vikas Chandra CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2016-09-04 05:49 EDT by Stephan Herrmann CLA
Modified: 2017-03-15 09:54 EDT (History)
1 user (show)

See Also:


Attachments
Possible fix. (1.20 KB, patch)
2016-09-08 06:29 EDT, Vikas Chandra CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2016-09-04 05:49:57 EDT
While setting up a workspace for BETA_JAVA9 work a clean build of org.eclipse.jdt.core gives exceptions like the following:

org.eclipse.core.runtime.CoreException: Unable to resolve superclass java.lang.Enum for javax.lang.model.element.ElementKind
	at org.eclipse.pde.api.tools.internal.model.ApiType.getSuperclass(ApiType.java:276)
	at org.eclipse.pde.api.tools.internal.builder.Reference.resolveField(Reference.java:387)
	at org.eclipse.pde.api.tools.internal.builder.Reference.resolve(Reference.java:362)
	at org.eclipse.pde.api.tools.internal.builder.SystemApiDetector.isProblem(SystemApiDetector.java:329)
	at org.eclipse.pde.api.tools.internal.builder.SystemApiDetector.createProblems(SystemApiDetector.java:414)
	at org.eclipse.pde.api.tools.internal.builder.ReferenceAnalyzer.analyze(ReferenceAnalyzer.java:247)
	at org.eclipse.pde.api.tools.internal.builder.BaseApiAnalyzer.checkApiUsage(BaseApiAnalyzer.java:1175)
	at org.eclipse.pde.api.tools.internal.builder.BaseApiAnalyzer.analyzeComponent(BaseApiAnalyzer.java:284)
	at org.eclipse.pde.api.tools.internal.builder.ApiAnalysisBuilder.buildAll(ApiAnalysisBuilder.java:742)
	at org.eclipse.pde.api.tools.internal.builder.ApiAnalysisBuilder.build(ApiAnalysisBuilder.java:360)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)


I'm running on Neon SDK + API descriptions + Beta Java 9 patch from the Market Place.

Am I missing anything?
Comment 1 Vikas Chandra CLA 2016-09-08 06:29:04 EDT
Created attachment 264027 [details]
Possible fix.

I need to investigate possible repercussions of this patch.
Comment 2 Vikas Chandra CLA 2016-09-08 06:29:24 EDT
This problem happens in latest oxygen as well.
Comment 3 Vikas Chandra CLA 2016-10-17 01:44:59 EDT
Now it doesn't happen anymore. I tried various builds.

Stephan, does this problem exist for you now. Please specify the Y build id if this problem recreates.
Comment 4 Vikas Chandra CLA 2017-03-15 09:54:55 EDT
I haven't seen this problem in last 2-3 months.