Bug 60341 - editor/compiler misunderstands Double()
Summary: editor/compiler misunderstands Double()
Status: RESOLVED INVALID
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 M9   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-28 18:06 EDT by Charlie Martin CLA
Modified: 2004-05-19 12:34 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charlie Martin CLA 2004-04-28 18:06:00 EDT
The line

     return Double().toString(30.0);

is marked as a compile error, "Double() is not a method of <enclosing class>"
Comment 1 Olivier Thomann CLA 2004-04-29 13:51:35 EDT
This is perfectly fine.
You need to write this as:
return Double.toString(30.0);

No need for () after the Double. If you have (), Double() is considered as a
method invocation.
Close as INVALID.