Closed Bug 492018 Opened 16 years ago Closed 16 years ago

Comparision of two empty strings returns incorrect result

Categories

(Tamarin Graveyard :: Virtual Machine, defect, P1)

x86
Windows XP
defect

Tracking

(Not tracked)

VERIFIED WORKSFORME
flash10.1

People

(Reporter: rkothari, Assigned: daumling)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022) Build Identifier: Following AS3 code is failing. var ge:GraphicElement = new GraphicElement(); if(ge.text == "") myt_txt.text = "true"; else myt_txt.text = "false"; Results should be "true" but myt_text is assigned to "false" Reproducible: Always Steps to Reproduce: 1. Create a graphic elememnt objcet from flash.text.engine.graphicElement like GraphicElement ge = new GraphicElement(); 2. Compare the text property of graphic element with empty string "" As an example ge.text == "" 3. The above comparision should result in ture case. However, it is failing and returns false. Actual Results: The comparision of two empty string returns 'false' Expected Results: The comparision of two empty string returns 'true'
Priority: -- → P1
Assignee: nobody → daumling
Blocks: 486742
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → flash10.x
I created an AIR app (a Flash app did not offer GraphicElement) and ran the test. It returned true. Please advise. I have attached the MXML file FYI.
QE, triage this issue, please.
Flags: flashplayer-triage?
Flags: flashplayer-qrb?
I compiled the attached AIR application using flex 4.0.0.7219 and ran the application using an internal build of AIR (WIN 10,1,50,211) and the application returned "TRUE" as expected.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → VERIFIED
removing QRB request, bug verified
Flags: flashplayer-triage?
Flags: flashplayer-qrb?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: