[Laszlo-dev] For Review: Change 20080211-dda-w Summary: SWF9: class name and file name conflict checks
P T Withington
ptw at pobox.com
Mon Feb 11 14:49:33 PST 2008
Approved!
On 2008-02-11, at 17:24 EST, Donald Anderson wrote:
> Change 20080211-dda-w by dda at lester.local on 2008-02-11 16:50:59 EST
> in /Users/dda/laszlo/src/svn/openlaszlo/branches/devildog
> for http://svn.openlaszlo.org/openlaszlo/branches/devildog
>
> Summary: SWF9: class name and file name conflict checks
>
> New Features:
>
> Bugs Fixed: LPP-5266
>
> Technical Reviewer: ptw (pending)
> QA Reviewer: hminsky (pending)
> Doc Reviewer: (pending)
>
> Documentation:
>
> Release Notes:
>
> Details:
> As agreed in review, compiler generated names should begin with
> $lzsc$
> (so interstitials are now named $lzsc$Name1$Name2...), and we can
> be
> more leniant on user's class names. This change disallows any
> class
> name beginning with '$'.
>
> A related change is to protect against file names conflicting.
> A previous test case had names like "foo" and "Foo" getting a file
> overwritten on windows (file system maps "foo.as" and "Foo.as"
> to the same file). This change prevents users from defining
> two or more classes whose names that differ only by case (or that
> are
> the same). This is perhaps too conservative for Unix systems,
> but may prevent cross-platform porting errors and seems to be
> a reasonable limitation.
>
> Tests:
> did usual regression tests for swf8/dhtml:
> smokecheck
> lzpix
> weather
> did henry's hello for swf9.
> made some local changes to LzNode to verify that class conflicts
> and illegal names are detected.
>
> Files:
> M WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9External.java
> M WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
>
> Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080211-dda-w.tar
>
>
>
> --
>
> Don Anderson
> Java/C/C++, Berkeley DB, systems consultant
>
> voice: 617-547-7881
> email: dda at ddanderson.com
> www: http://www.ddanderson.com
>
>
>
>
More information about the Laszlo-dev
mailing list