a quick about namespaces

Nic Ferrier nferrier@tapsellferrier.co.uk
Tue Jan 22 17:56:00 GMT 2002


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



More information about the Java mailing list