cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ed Jenkins" <digitalman200...@hotmail.com>
Subject RE: Pizza
Date Thu, 14 Mar 2002 23:35:45 GMT
I was wrong.  Sun was wrong.
Vadim is right.  SourceForge is right.

According to JLS 3.10.5, a string literal can not have a line terminator it 
it.

Thanks, Vadim.

Ed

---

From: "Vadim Gritsenko" <vadim.gritsenko@verizon.net>
Reply-To: cocoon-users@xml.apache.org
To: <cocoon-users@xml.apache.org>
Subject: RE: Pizza
Date: Thu, 14 Mar 2002 17:46:44 -0500

 > From: Ed Jenkins [mailto:digitalman2000hm@hotmail.com]
 >
 > Yesterday, we upgraded to Cocoon 2.0.2dev.  In that version, in
 > cocoon.xconf, the default compiler was switched from Javac to Pizza.
 >
 > Pizza is reporting some compilation errors in my XSP files that were
OK when
 > compiled with Javac.  Also, I believe the JLS would not consider this
to be
 > an error.

I don't think so.


 > Here is a small example of the code:
 >
 > <xsp:logic>
 >     private void setSomething()
 >     {
 >         String s =
 >         "
 >         <one>
 >             <two>three</two>
 >             <two>three</two>
 >         </one>
 >         ";
 >         request.getSession().setAttribute("something", s);
 >     }
 > </xsp:logic>
 >
 > Here are the errors I'm getting:
 >
 > Line 106, column 13:  unclosed character literal
 > Line 106, column 12:  illegal start of expression
 > Line 139, column 14:  unclosed character literal

IIRC, compiler is right.


 > When I change it to this, the errors go away:
 >
 > String s = "";
 >
 > I think it doesn't like it when a string literal is split up into
multiple
 > lines.  What's up with that?

Use Python - it is the only language allowing this.

Vadim


 > I see that Pizza is made by SourceForge.  Who should I contact there
to ask
 > about this?  www.sf.net is currently down.
 >
 > Ed



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>





_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message