Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 88581 invoked by uid 500); 4 Jan 2002 11:26:50 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 88570 invoked from network); 4 Jan 2002 11:26:50 -0000 Message-ID: From: "Durrant, Peter" To: cocoon-dev@xml.apache.org Subject: Logic and Java Date: Fri, 4 Jan 2002 06:25:51 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'm trying to resolve a problem with java generated from logicsheets. Suppose I have the following code in a logicsheet double small_value = 1e-10; double large_value = 1e10; double other_value = 1e+10; then Cocoon will generate a java file with the following code in it double small_value = 1e - 10; double large_value = 1e10; double other_value = 1e + 10; This is obviously incorrect - it should produce "1e-10" and "1e+10" not "1e - 10" and "1e + 10". The spaces introduced into these numbers produces a syntax error during compilation since the numbers are incorrectly formatted. Cocoon returns an "org.apache.cocoon.ProcessingException": org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling double_xsp: Line 95, column 52: Invalid floating point format where Line 95, column 52 corresponds to the first "1" character in the "1e - 10". I'm not entirely sure of the underlying process that generates the java file prior to compilation -- I'm guessing this is caused by JstyleFormatter? (from the following parameter in my cocoon.xconf) If this is the case then are there other code formatters that could be used? Or perhaps this is a known bug that has been fixed since the release of Cocoon 2. Any light shed on this problem will be gratefully received. Pete (I originally posted a similar question to the users group, but we were unable to resolve the problem. After a further examination of the problem I think this may be a bug, so I'm bringing it to the attention of the developers group.) --- Cognos, London, UK This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate, or distribute it; do not open any attachments, delete it immediately from your system and notify the sender by e-mail promptly that you have done so. Thank You. --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org