You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@james.apache.org by Bernd Fondermann <bf...@brainlounge.de> on 2006/10/29 09:40:27 UTC
Re: Are James classes still Private and Protected ?
Hi Miroslav,
All the source code is fully available under the Apache Software
License. So this project is indeed 'open source'.
Development is done in public and is open to everyone.
Marking Java classes, methods and fields as 'private' or 'protected' has
nothing to do with the 'openness' of the project itself.
It is just a fundamental concept called 'encapsulation' in
object-oriented languages like Java is one. (see
http://en.wikipedia.org/wiki/Object_Oriented , section Fundamental
Concepts, bullet point Encapsulation)
If you need to change behavior of encapsulated code, take the source
code and modify as you like.
Bernd
Miroslav Nachev wrote:
> Hi,
>
> I like the idea for Java based Mail Servers. That's why I am in this
> forum more than 6 years. I used James about 2 years and the reason to
> stop using was that all classes and methods expect the mains were
> private or protected. I met that when I try to do some changes, to add
> some extras and to improve it. Then I ask why is this protection in case
> that this is a Open Source project. The answer was that this is the
> politic of the team. After that I stop used James (now I am using
> PostFix and QMail) but I am looking for new more open Java based Mail
> Servers.
> What is the situation now? Are most of the classes and methods still
> private and protected or are public?
>
>
> Best Regards,
> Miroslav Nachev
Re: Are James classes still Private and Protected ?
Posted by Bernd Fondermann <bf...@brainlounge.de>.
(I am keeping this thread on "general" because it applies to all the
code we ship)
Miroslav Nachev wrote:
> Dear Bernd,
>
> I am familiar with Object Oriented Programming more than 16 years. I am
> familiar with more than 8 programming languages like Basic, Fortran-77,
> Pascal, x86 Assembler, C, C++, 4GL Magic, Java and others. I use Java
> from 1998.
Fine, so you will probably join me in saying that using protected and
private identifiers in Java is genuine a good thing. Which kind of
answers your original question.
And with all that experience you wouldn't confuse programming language
features with community features, right? ;-)
> In my specific case I found a bug which I try to fix with inheriting.
> Unfortunately the class/method was private and this was impossible.
> Looking in the source code I see too many thing that can be improved but
> unfortunately the classes.methods were private also.
You can take the source code and fix it directly in-place without using
inheritance. It is absolutely fine to do so with Apache code.
However... there is a downside to doing this 'in private' (= for
yourself only) - it is not incorporated into the original source code
hosted here.
Please take a minute and browse the Apache and James website to find out
how to contribute to this and project.
You don't have to become a committer if you want to have a bug fixed.
> There are 2 ways to fix bugs, to improve the code and to add some
> basic/fundamental futures. The 1st is to be part of the team of this
> project and the 2nd is to inherit the code. Because I haven't time to be
> part of this project I try 2nd way but without success.
We can help you with '1st', with '2nd' you are all on your own.
Bernd
Re: Are James classes still Private and Protected ?
Posted by Miroslav Nachev <mi...@space-comm.com>.
Dear Bernd,
I am familiar with Object Oriented Programming more than 16 years. I am
familiar with more than 8 programming languages like Basic, Fortran-77,
Pascal, x86 Assembler, C, C++, 4GL Magic, Java and others. I use Java
from 1998.
In my specific case I found a bug which I try to fix with inheriting.
Unfortunately the class/method was private and this was impossible.
Looking in the source code I see too many thing that can be improved but
unfortunately the classes.methods were private also.
There are 2 ways to fix bugs, to improve the code and to add some
basic/fundamental futures. The 1st is to be part of the team of this
project and the 2nd is to inherit the code. Because I haven't time to be
part of this project I try 2nd way but without success.
Regards,
Miro.
Bernd Fondermann написа:
> Hi Miroslav,
>
> All the source code is fully available under the Apache Software
> License. So this project is indeed 'open source'.
> Development is done in public and is open to everyone.
>
> Marking Java classes, methods and fields as 'private' or 'protected'
> has nothing to do with the 'openness' of the project itself.
> It is just a fundamental concept called 'encapsulation' in
> object-oriented languages like Java is one. (see
> http://en.wikipedia.org/wiki/Object_Oriented , section Fundamental
> Concepts, bullet point Encapsulation)
>
> If you need to change behavior of encapsulated code, take the source
> code and modify as you like.
>
> Bernd
>
> Miroslav Nachev wrote:
>> Hi,
>>
>> I like the idea for Java based Mail Servers. That's why I am in this
>> forum more than 6 years. I used James about 2 years and the reason to
>> stop using was that all classes and methods expect the mains were
>> private or protected. I met that when I try to do some changes, to
>> add some extras and to improve it. Then I ask why is this protection
>> in case that this is a Open Source project. The answer was that this
>> is the politic of the team. After that I stop used James (now I am
>> using PostFix and QMail) but I am looking for new more open Java
>> based Mail Servers.
>> What is the situation now? Are most of the classes and methods still
>> private and protected or are public?
>>
>>
>> Best Regards,
>> Miroslav Nachev
>
>
>