Bug 46901 - Strange compile error in javadoc
Summary: Strange compile error in javadoc
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-18 18:05 EST by Douglas Pollock CLA
Modified: 2003-11-19 16:49 EST (History)
0 users

See Also:


Attachments
Image showing the problem (161.81 KB, image/jpeg)
2003-11-18 18:06 EST, Douglas Pollock CLA
no flags Details
My preferences on this machine (83.50 KB, text/plain)
2003-11-18 18:07 EST, Douglas Pollock CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.