#890 Type inference engine, not recognizing bean names of methods

1.4.4
closed-fixed
9
2009-05-08
2009-03-31
Ross Nicholson
No

System: Windows XP
Eclipse version: 3.3 and 3.4.2
Pydev version: 1.4.4
Eclipse install location: C:\eclipse3.3 and C:\eclipse-j2ee.3.4.2
Project location where the bug appears: C:\myworkspace\PPComWebTester
Jython: 2.2.1

Related to previous bug: https://sourceforge.net/tracker/?func=detail&atid=577329&aid=2694343&group_id=85796

The following code now works in Pydev after previous bug fix:

from java.lang.Boolean import TYPE
print TYPE.getName()

However the following should also work but produces an error:

from java.lang.Boolean import TYPE
print TYPE.name

This code simply uses the bean name of the method instead of the actual method name. This code runs in the Jython shell.

Discussion

  • Ross Nicholson
    Ross Nicholson
    2009-03-31

    • priority: 5 --> 9
     
  • Ross Nicholson
    Ross Nicholson
    2009-03-31

    Just a note. We could convert all our code to use method names as a resolution to this bug but that means modifying over 1000 source files. Currently we have over 800 errors across our code which makes it quite hard to use pydev as our editor. Hence the high priority for this bug.

     
  • Ross Nicholson
    Ross Nicholson
    2009-05-08

    Any news on this bug?

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2009-05-08

    • status: open --> closed-fixed
     
  • Fabio Zadrozny
    Fabio Zadrozny
    2009-05-08

    Actually, I had started working on that about an hour before you asked ;-)

    Just fixed for 1.4.6 (svn: 2764)