It is a feature. Java's "package" access is namespace based, so the J#
compiler people decided (by default) to map all non-private access
modifiers to public. You can use the "/securescoping" option to change
this behavior.

Regards,
Jeroen

> -----Original Message-----
> From: Moderated discussion of advanced .NET topics. 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Bogdan Lachendro
> Sent: Monday, September 08, 2003 09:48
> To: [EMAIL PROTECTED]
> Subject: [ADVANCED-DOTNET] J# and access modifiers
> 
> Hi,
> 
> When I create some assembly in J# and then use it in C# I see 
> a strange
> (at least for me) behaviour.
> In C# any acces modifiers of methods/fields from J#-written 
> assembly are
>   "seen" as private or public. Another words - any acces modifier used
> in J# that is not private is "seen" in C# assembly as public.
> 
> So I can use/invoke protected/internal... fields/methods from 
> J# in C#.
> Is this a feature or a bug?
> 
> Regards,
> Bogdan
> 
> --
> Bogdan Lachendro                 mailto:lachu(at)icslab.agh.edu.pl
> 
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
> NEW! ASP.NET courses you may be interested in:
> 
> 2 Days of ASP.NET, 29 Sept 2003, in Redmond
> http://www.develop.com/courses/2daspdotnet
> 
> Guerrilla ASP.NET, 13 Oct 2003, in Boston
> http://www.develop.com/courses/gaspdotnet
> 
> View archives and manage your subscription(s) at 
> http://discuss.develop.com
> 

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to