Message3390

Author cprinos
Recipients cprinos
Date 2008-08-02.20:44:57
SpamBayes Score 1.37085e-08
Marked as misclassified No
Message-id <1217709897.96.0.585013612633.issue1094@psf.upfronthosting.co.za>
In-reply-to
Content
The following code works in jython 2.2.1 but not in 2.5a1.


Jython 2.5a1+ (asm:4943:4945, Jul 15 2008, 15:30:04)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_06
Type "help", "copyright", "credits" or "license" for more information.
>>> from javax.swing import *
>>> jl = JLabel()
>>> print jl.class
Traceback (most recent call last):
  (no code object) at line 0
  File "<stdin>", line 0
        XXX: missing text
        ^
SyntaxError: mismatched input class expecting NAME (<stdin>, line 0)


changing this by printing jl.getClass() instead works ok
History
Date User Action Args
2008-08-02 20:44:58cprinossetrecipients: + cprinos
2008-08-02 20:44:57cprinossetmessageid: <1217709897.96.0.585013612633.issue1094@psf.upfronthosting.co.za>
2008-08-02 20:44:57cprinoslinkissue1094 messages
2008-08-02 20:44:57cprinoscreate