Closed
Bug 382170
Opened 18 years ago
Closed 16 years ago
avmplus::File.exists return null
Categories
(Tamarin Graveyard :: Virtual Machine, defect)
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 459284
People
(Reporter: zwetan, Unassigned)
Details
Attachments
(1 file)
62.99 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Build Identifier: avmplus shell 1.0 build cyclone_dschaffe_2007-05-11_15-05
File.exists( anyfilepath ) always return null
when it should return either true or false.
Reproducible: Always
Steps to Reproduce:
1. define bug_File_exists.as
---
import avmplus.File;
trace( File.exists( "unknown.txt" ) );
---
2. compile the as file and run with avmplus or avmplus_sd
Actual Results:
File.exists function always return null.
Expected Results:
File.exists function should return true or false
in mozilla/js/tamarin/shell/toplevel.as
the class File define
public native static function exists(filename:String):String;
it should define
public native static function exists(filename:String):Boolean;
the change in itself is simple, but to apply and use it you need to regenerate toplevel.h and toplevel.cpp.
notes:
1. I had to edit /core/XML.as
to be able to compile global.abc (needed to generate toplevel.h and toplevel.cpp)
2. in avmplus_8.vcproj \core\version.h
has been replaced by \core\avmplusVersion.h
(not really pertinent for that diff)
3. toplevel.cpp and toplevel.h are way different than the original
because I generated the bytecode including all *.as files from 1 scripts
(I didn't get how to generate the bytecode from different scripts ...)
Comment 2•18 years ago
|
||
Transfer Bug from Core->Tamarin to Tamarin Product.
Status: UNCONFIRMED → NEW
Component: Tamarin → Virtual Machine
Ever confirmed: true
Product: Core → Tamarin
Comment 3•18 years ago
|
||
Comment 4•16 years ago
|
||
Bug 459284 is the same issue and has already been RESOLVED/FIXED so closing this issue as a duplicate even though it was in here first.
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: flashplayer-triage+
Resolution: --- → DUPLICATE
Updated•16 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•