[Laszlo-dev] For Review: Change 20081110-dda-H Summary: In schemabuilder, throw an error for invalid types
Donald Anderson
dda at ddanderson.com
Mon Nov 10 07:47:38 PST 2008
Change 20081110-dda-H by dda at lester.local on 2008-11-10 10:30:32 EST
in /Users/dda/laszlo/src/svn/openlaszlo/trunk-d
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: In schemabuilder, throw an error for invalid types
New Features:
Bugs Fixed: LPP-7231
Technical Reviewer: max (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Changed schema builder to only permit certain types, and throw an
error otherwise,
rather than have the reader of the schema choke at runtime.
The list of accepted types is:
ID, boolean, color, css, expression, inheritableBoolean, number,
numberExpression, reference, size, string, token.
Aside:
Kept some previously working code that silently converts other
several other types (like LzNode)
to "string" in the schema. This was needed originally to get
compatibility in generating
a schema that looks like the old one (and one that is digested by
the schema reader!).
Maybe a better solution to this is to teach the readers of the
schema to
accept arbitrary types, but that goes beyond this JIRA,
and it's not clear it gives us any new functionality now.
Tests:
To see the error, recreated the original trouble by changing the
javadoc for LzNode.datapath to
/** ....
* @type lz.datanode/String
* @lzxtype datanode/string
*/
var datapath = null;
Files:
M WEB-INF/lps/server/src/org/openlaszlo/js2doc/SchemaBuilder.java
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20081110-dda-H.tar
--
Don Anderson
Java/C/C++, Berkeley DB, systems consultant
voice: 617-547-7881
email: dda at ddanderson.com
www: http://www.ddanderson.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20081110/e040d8f3/attachment.html
More information about the Laszlo-dev
mailing list