A comment block with /** causes a segmentation fault in WebDSL. Faulty comment example:


/**
* Reusable translation dealing with whether this collection belongs to an entity with property events or is an ordinary collection
* This needs to be improved by adding collection classes that represent both of these types,
* then ‘escaped’ collections (eg collection property passed to function) still handle property events.
* Maybe there is a way to do this with hibernate collections directly.
*/

Causes:


/nix/store/c4cfqf8rn3xn397sz635qrrszmvp703a-strategoxt-1.8pre24566/bin/parse-stratego -I . -I /nix/store/v3j1wkmxrhhrhkbwf6yflq5waq041pyi-java-front-0.9.1pre20122/share/java-front -I /nix/store/v3j1wkmxrhhrhkbwf6yflq5waq041pyi-java-front-0.9.1pre20122/share/java-front/languages/java/eblock -I /nix/store/v3j1wkmxrhhrhkbwf6yflq5waq041pyi-java-front-0.9.1pre20122/share/java-front-syntax -I /nix/store/c4cfqf8rn3xn397sz635qrrszmvp703a-strategoxt-1.8pre24566/share/sdf/gpp -I /nix/store/c4cfqf8rn3xn397sz635qrrszmvp703a-strategoxt-1.8pre24566/share/sdf/xml-front -I /nix/store/c4cfqf8rn3xn397sz635qrrszmvp703a-strategoxt-1.8pre24566/share/xml-front -I org/webdsl/dsl/syntax -i org/webdsl/dsl/to-java-servlet/types/collection.str -o org/webdsl/dsl/to-java-servlet/types/collection.rtree
make[1]: *** [org/webdsl/dsl/to-java-servlet/types/collection.rtree] Segmentation fault: 11

This happens with STRC 1.8 (revision 24566) and sdf2-bundle-2.4.

Breaking the double quote to /* * fixes the error.

Submitted by Vlad Vergu on 10 May 2012 at 13:43

Log in to post comments