Bug 46901

Summary: Strange compile error in javadoc
Product: [Eclipse Project] JDT Reporter: Douglas Pollock <douglas.pollock>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Image showing the problem
none
My preferences on this machine none

Description Douglas Pollock CLA 2003-11-18 18:05:56 EST
There is a compile error in my javadoc, that complains that a class cannot be 
instantiated.  The problem only occurs on my Windows XP box.  It does not 
occur on my Linux-GTK box, nor on another team member's Windows XP box.  The 
exact complaint is "Cannot instantiate the type Plugin, since it is not a 
concrete class", and occurs in ViewsPlugin.
Comment 1 Douglas Pollock CLA 2003-11-18 18:06:47 EST
Created attachment 6843 [details]
Image showing the problem

Just to prove I'm not crazy....
Comment 2 Douglas Pollock CLA 2003-11-18 18:07:41 EST
Created attachment 6844 [details]
My preferences on this machine
Comment 3 Frederic Fusier CLA 2003-11-19 04:42:27 EST
Problem comes from method JavadocAllocationExpression.internalResolveType(...)
Comment 4 Frederic Fusier CLA 2003-11-19 06:55:17 EST
Fixed.

There was an invalid check in this method:
if (!this.resolvedType.canBeInstantiated()) {
...
}

Remove this verification as we're in a comment and we don't matter whether the 
type can be instanciated or not...

Test case testBug46901 added in JavadocTestMixed.
Comment 5 Olivier Thomann CLA 2003-11-19 16:49:12 EST
Verified in build 200311191547.