Community
Participate
Working Groups
Build Identifier: RAP 1.3 This bug is close related with https://bugs.eclipse.org/bugs/show_bug.cgi?id=304364. It is hard to provide steps to reproduce, but the cause of this bug is pretty clear: i think we should truncate(or replace) zeros while set text to Text component in JSWriter also: private static String escapeString( final String input ) { String result = EncodingUtil.escapeDoubleQuoted( input ); result = EncodingUtil.replaceNewLines( result ); int index = result.indexOf( 0 ); if( index != -1 ) { result = result.substring( 0, index ); } return result; } As it is made for Labels in WidgetLCAUtil: public static String escapeText( final String text, final boolean mnemonics ) { ... // truncate at zeros String result = buffer.toString(); int index = result.indexOf( 0 ); if( index != -1 ) { result = result.substring( 0, index ); } return result; } Reproducible: Always
I did some tests in different browsers - FF, Safari, Chrome and Opera automatically truncate the text at zero, IE crashed with "undetermined string constant" error. Text is truncated at zero in TextLCAUtil as suggested. Changes are in CVS HEAD.