Re: $ in JSP names

2002-07-15 Thread Kin-Man Chung

I totally agree that the use of $ in a file name is a pain in the neck.
In fact, I don't see the need for appending a $jsp at all.  Currently
we have the following mapping:

jsp file name: foo.jsp
class name: foo$jsp
servelt file name: foo$jsp.java
class file name: foo$jsp.class

I think it'd be perfectly OK to use the following mapping:

jsp file name: foo.jsp
class name: foo
servelt file name: foo.java
class file name: foo.class


 Date: Fri, 12 Jul 2002 14:55:01 -0700 (PDT)
 From: [EMAIL PROTECTED]
 Subject: $ in JSP names
 X-X-Sender: [EMAIL PROTECTED]
 To: List Tomcat-Dev [EMAIL PROTECTED]
 X-Authentication-warning: costinm.sfo.covalent.net: costin owned process doing 
-bs
 
 I just upgraded to jikes1.16, and I get one warning for each JSP file
 I compile:
 
 Lexical: The use of $ in an identifier, while legal, is strongly 
 discouraged, since it can conflict with compiler-generated names. If you 
 are trying to access a nested type, use . instead of $.
 
 In addition, it is painfull to look at the source from shell ( need
 to do emacs page\$jsp.jsp ).
 
 Would it be possible to use another delimiter in the generated name ?
 The change is trivial.
 
 Costin
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: $ in JSP names

2002-07-15 Thread Craig R. McClanahan



On Mon, 15 Jul 2002, Kin-Man Chung wrote:

 Date: Mon, 15 Jul 2002 11:55:15 -0700 (PDT)
 From: Kin-Man Chung [EMAIL PROTECTED]
 Reply-To: Tomcat Developers List [EMAIL PROTECTED],
  Kin-Man Chung [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: $ in JSP names

 I totally agree that the use of $ in a file name is a pain in the neck.
 In fact, I don't see the need for appending a $jsp at all.  Currently
 we have the following mapping:

   jsp file name: foo.jsp
   class name: foo$jsp
   servelt file name: foo$jsp.java
   class file name: foo$jsp.class

 I think it'd be perfectly OK to use the following mapping:

   jsp file name: foo.jsp
   class name: foo
   servelt file name: foo.java
   class file name: foo.class


Don't forget about pathological cases like having more than one extension
mapped to the JSP servlet ...

Craig



  Date: Fri, 12 Jul 2002 14:55:01 -0700 (PDT)
  From: [EMAIL PROTECTED]
  Subject: $ in JSP names
  X-X-Sender: [EMAIL PROTECTED]
  To: List Tomcat-Dev [EMAIL PROTECTED]
  X-Authentication-warning: costinm.sfo.covalent.net: costin owned process doing
 -bs
 
  I just upgraded to jikes1.16, and I get one warning for each JSP file
  I compile:
 
  Lexical: The use of $ in an identifier, while legal, is strongly
  discouraged, since it can conflict with compiler-generated names. If you
  are trying to access a nested type, use . instead of $.
 
  In addition, it is painfull to look at the source from shell ( need
  to do emacs page\$jsp.jsp ).
 
  Would it be possible to use another delimiter in the generated name ?
  The change is trivial.
 
  Costin
 
 
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: $ in JSP names

2002-07-15 Thread Arvind Srinivasan



Craig R. McClanahan wrote:
 
 On Mon, 15 Jul 2002, Kin-Man Chung wrote:
 
  Date: Mon, 15 Jul 2002 11:55:15 -0700 (PDT)
  From: Kin-Man Chung [EMAIL PROTECTED]
  Reply-To: Tomcat Developers List [EMAIL PROTECTED],
   Kin-Man Chung [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: $ in JSP names
 
  I totally agree that the use of $ in a file name is a pain in the neck.
  In fact, I don't see the need for appending a $jsp at all.  Currently
  we have the following mapping:
 
jsp file name: foo.jsp
class name: foo$jsp
servelt file name: foo$jsp.java
class file name: foo$jsp.class
 
  I think it'd be perfectly OK to use the following mapping:
 
jsp file name: foo.jsp
class name: foo
servelt file name: foo.java
class file name: foo.class
 
 

I thought the reason for appending something ($jsp or _jsp) was to
prevent errors in the generated java files for jsp filenames that use
one of java's keywords - default.jsp or new.jsp.

-Arvind

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: $ in JSP names

2002-07-15 Thread Kin-Man Chung

I think you and Craig are both right.  So how about using a _ instead of
a $?


 Date: Mon, 15 Jul 2002 12:48:18 -0700
 From: Arvind Srinivasan [EMAIL PROTECTED]
 Subject: Re: $ in JSP names
 To: Tomcat Developers List [EMAIL PROTECTED]
 Cc: Kin-Man Chung [EMAIL PROTECTED]
 Content-transfer-encoding: 7BIT
 
 
 
 Craig R. McClanahan wrote:
  
  On Mon, 15 Jul 2002, Kin-Man Chung wrote:
  
   Date: Mon, 15 Jul 2002 11:55:15 -0700 (PDT)
   From: Kin-Man Chung [EMAIL PROTECTED]
   Reply-To: Tomcat Developers List [EMAIL PROTECTED],
Kin-Man Chung [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: Re: $ in JSP names
  
   I totally agree that the use of $ in a file name is a pain in the neck.
   In fact, I don't see the need for appending a $jsp at all.  Currently
   we have the following mapping:
  
 jsp file name: foo.jsp
 class name: foo$jsp
 servelt file name: foo$jsp.java
 class file name: foo$jsp.class
  
   I think it'd be perfectly OK to use the following mapping:
  
 jsp file name: foo.jsp
 class name: foo
 servelt file name: foo.java
 class file name: foo.class
  
  
 
 I thought the reason for appending something ($jsp or _jsp) was to
 prevent errors in the generated java files for jsp filenames that use
 one of java's keywords - default.jsp or new.jsp.
 
 -Arvind


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: $ in JSP names

2002-07-15 Thread costinm

On Mon, 15 Jul 2002, Kin-Man Chung wrote:

 I think you and Craig are both right.  So how about using a _ instead of
 a $?

+1 !


Costin

 
 
  Date: Mon, 15 Jul 2002 12:48:18 -0700
  From: Arvind Srinivasan [EMAIL PROTECTED]
  Subject: Re: $ in JSP names
  To: Tomcat Developers List [EMAIL PROTECTED]
  Cc: Kin-Man Chung [EMAIL PROTECTED]
  Content-transfer-encoding: 7BIT
  
  
  
  Craig R. McClanahan wrote:
   
   On Mon, 15 Jul 2002, Kin-Man Chung wrote:
   
Date: Mon, 15 Jul 2002 11:55:15 -0700 (PDT)
From: Kin-Man Chung [EMAIL PROTECTED]
Reply-To: Tomcat Developers List [EMAIL PROTECTED],
 Kin-Man Chung [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: $ in JSP names
   
I totally agree that the use of $ in a file name is a pain in the neck.
In fact, I don't see the need for appending a $jsp at all.  Currently
we have the following mapping:
   
  jsp file name: foo.jsp
  class name: foo$jsp
  servelt file name: foo$jsp.java
  class file name: foo$jsp.class
   
I think it'd be perfectly OK to use the following mapping:
   
  jsp file name: foo.jsp
  class name: foo
  servelt file name: foo.java
  class file name: foo.class
   
   
  
  I thought the reason for appending something ($jsp or _jsp) was to
  prevent errors in the generated java files for jsp filenames that use
  one of java's keywords - default.jsp or new.jsp.
  
  -Arvind
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: $ in JSP names

2002-07-15 Thread Craig R. McClanahan



On Mon, 15 Jul 2002 [EMAIL PROTECTED] wrote:

 Date: Mon, 15 Jul 2002 13:40:28 -0700 (PDT)
 From: [EMAIL PROTECTED]
 Reply-To: Tomcat Developers List [EMAIL PROTECTED]
 To: Tomcat Developers List [EMAIL PROTECTED],
  Kin-Man Chung [EMAIL PROTECTED]
 Subject: Re: $ in JSP names

 On Mon, 15 Jul 2002, Kin-Man Chung wrote:

  I think you and Craig are both right.  So how about using a _ instead of
  a $?

 +1 !



+1 as well.

 Costin

Craig


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




$ in JSP names

2002-07-12 Thread costinm

I just upgraded to jikes1.16, and I get one warning for each JSP file
I compile:

Lexical: The use of $ in an identifier, while legal, is strongly 
discouraged, since it can conflict with compiler-generated names. If you 
are trying to access a nested type, use . instead of $.

In addition, it is painfull to look at the source from shell ( need
to do emacs page\$jsp.jsp ).

Would it be possible to use another delimiter in the generated name ?
The change is trivial.

Costin


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]