Bug 154600 - Pregenerated stubs contains misleading values
Pregenerated stubs contains misleading values
Status: NEW
Product: ruby
Classification: Unclassified
Component: Code Completion
6.x
All All
: P4 (vote)
: 7.0
Assigned To: issues@ruby
issues@ruby
:
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


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.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo