Re: Class files for jsp
From: Raymond DeCampo (rdecampo_at_spam-I-am-not.twcny.rr.com)
Date: 12/19/03
- Next message: Jared Dykstra: "Re: Problem updating class files"
- Previous message: Karl von Laudermann: "Re: Problems with Ant, strange effects"
- In reply to: Harold Ensle: "Re: Class files for jsp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 18 Dec 2003 23:18:56 GMT
Harold Ensle wrote:
>
>
> Thanks. This was very informative. Using public worked. However, when
> I used the class from a compiled servlet, it worked without "public" and
> that
> is why I didn't think it was needed. Apparently the compiler had public as
> the default.
>
It is unlikely that the compiler "had public as the default." That
would violate the Java Language specification. More likely was that the
servlet was in the same package as the other class. (Probably both were
in the "default" package that classes without a package directive are
placed in.) That would give it access to anything declared without an
explicit access modifier.
Ray
- Next message: Jared Dykstra: "Re: Problem updating class files"
- Previous message: Karl von Laudermann: "Re: Problems with Ant, strange effects"
- In reply to: Harold Ensle: "Re: Class files for jsp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|