This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
a quick about namespaces
- From: Nic Ferrier <nferrier at tapsellferrier dot co dot uk>
- To: java at gcc dot gnu dot org
- Date: 23 Jan 2002 02:12:41 +0000
- Subject: a quick about namespaces
I generated some CNI stubs from some java class files and was a bit
suprised to see slightly different syntax in some circs.
For example, when hacking on GCJ code I've always done this:
throw new java::lang::IllegalStateException ( ... );
but the code generated by current gcjh does this:
throw new ::java::lang::IllegalStateException ( ... );
Is this significant? Is there something here that I have to
understand?
I know that the :: is a namespace delimiter... so it seems odd to me
that gcjh should have generated the code with the leading :: unles it
is because my code is outside the package "java".
Nic