This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]