Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 155675 Details for
Bug 299213
[language support] JSDT confuses static and member methods with same name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Testcase
same-name-function.js (text/javascript), 1.11 KB, created by
Laurens Holst
on 2010-01-10 08:46:04 EST
(
hide
)
Description:
Testcase
Filename:
MIME Type:
Creator:
Laurens Holst
Created:
2010-01-10 08:46:04 EST
Size:
1.11 KB
patch
obsolete
>/** > * @fileoverview > * > * The resolve() method should not get warning âThe static > * function resolve from the type URI should be accessed > * in a static wayâ. > * > * Call to other method from within URI::resolve() should > * not give error âCannot make a static reference to the > * non-static function removeDotSegments() from the type > * URIâ. > * > * As the second test shows, these errors do not occur if > * you define the class method before the static method. > * > * Also observe that for the first test the overview shows > * only a static resolve() method, whereas for the second > * test the overview shows only a class resolve() method. > */ >(function() { > > var URI = function() { > }; > > URI.resolve = function() { > }; > > URI.prototype.resolve = function() { > this.removeDotSegments(); > }; > > URI.prototype.removeDotSegments = function() { > }; > >})(); > >(function() { > > var URI2 = function() { > }; > > URI2.prototype.resolve = function() { > this.removeDotSegments(); > }; > > URI2.resolve = function() { > }; > > URI2.prototype.removeDotSegments = function() { > }; > >})();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 299213
: 155675