This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 154600 - Pregenerated stubs contains misleading values
Summary: Pregenerated stubs contains misleading values
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-04 13:30 UTC by Martin Krauskopf
Modified: 2011-01-28 20:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Krauskopf 2008-12-04 13:30:12 UTC
E.g. Fcntl stub:

  module Fcntl
    F_DUPFD = 'INT2NUM(F_DUPFD)'
    F_GETFD = 'INT2NUM(F_GETFD)'

Thus we will infer String type for constants above. Either we can do clever heuristics and genereate in this case:

  module Fcntl
    F_DUPFD = 0 # Fake value for indexing
    F_GETFD = 0 # Fake value for indexing

or at least generate:

  module Fcntl
    F_DUPFD = nil # Unknown type used for indexing
    F_GETFD = nil # Unknown type used for indexing

until we have above heuristics. Also could be handled in Type Analyzer directly, but that workaround solution.
Comment 1 Martin Krauskopf 2008-12-04 13:32:05 UTC
Forgot to assign to me. I should probably change default owner of some areas. To be discussed by email, whether you(Tor)
want to watch such Ruby issues.
Comment 2 Erno Mononen 2009-05-22 14:55:34 UTC
Still valid.
Comment 3 Erno Mononen 2010-04-14 16:57:53 UTC
I suppose this isn't of that high importance, e.g. int2num seems to used only three files for constants that I think are not used too often.