Bug 150853 - "abstract" class and MismatchTokenException
"abstract" class and MismatchTokenException
Status: CLOSED INVALID
Product: python
Classification: Unclassified
Component: Code
6.x
All All
: P3 (vote)
: TBD
Assigned To: ardavis26
nbpythonqa
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-21 12:47 UTC by Jiri Vagner
Modified: 2017-06-22 17:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
:


Attachments
testers.py (100 bytes, text/plain)
2008-10-21 12:48 UTC, Jiri Vagner
Details
abstract-01-pydev.jpg (49.41 KB, image/jpeg)
2008-10-21 12:49 UTC, Jiri Vagner
Details
abstract-02-pydev.jpg (58.59 KB, image/jpeg)
2008-10-21 12:49 UTC, Jiri Vagner
Details
abstract-01-nbpython.jpg (102.00 KB, image/jpeg)
2008-10-21 12:50 UTC, Jiri Vagner
Details
abstract-02-nbpython.jpg (90.65 KB, image/jpeg)
2008-10-21 12:51 UTC, Jiri Vagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Vagner 2008-10-21 12:47:25 UTC
There is an easy and simple way how to "emulate" abstract classes in python, see the attached source file. I have no
problem with code completion inside or outside abstract class body using pyDev, the screenshots attached. While invoking
code completion using NBPython, there is something wrong while ide is parsing file, it shows error annotation icon and
underlined row.

Steps to reproduce:
 - open testers.py source file
 - add new line to method setInfo(), type "self." and invoke code completion
 - delete changes and  go to at the and of last line
 - add "." and invoke code completion
Comment 1 Jiri Vagner 2008-10-21 12:48:32 UTC
Created attachment 72376 [details]
testers.py
Comment 2 Jiri Vagner 2008-10-21 12:49:27 UTC
Created attachment 72377 [details]
abstract-01-pydev.jpg
Comment 3 Jiri Vagner 2008-10-21 12:49:49 UTC
Created attachment 72378 [details]
abstract-02-pydev.jpg
Comment 4 Jiri Vagner 2008-10-21 12:50:55 UTC
Created attachment 72379 [details]
abstract-01-nbpython.jpg
Comment 5 Jiri Vagner 2008-10-21 12:51:24 UTC
Created attachment 72381 [details]
abstract-02-nbpython.jpg
Comment 6 Jiri Vagner 2008-10-21 13:02:39 UTC
Product Version: NetBeans IDE 6.5 RC1 (Build 20081020164434)
Java: 1.6.0_10-rc2; Java HotSpot(TM) Client VM 11.0-b15
Python: jython 2.5a3+
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Comment 7 Jiri Vagner 2008-10-21 13:07:28 UTC
No need to invoke code completion dialog, it shows errors while typing "." char.
Comment 8 Jenselme 2017-06-22 17:43:56 UTC
Not sure it is still relevant with the current version. Closing this as old bug. If this is still a thing, please reopen and accept my apologies.
Comment 9 Jiri Kovalsky 2017-06-22 17:59:16 UTC
Thanks for your evaluation Julien. Closing then.


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