Re: duplicate class names in ASF Java projects

Ralph Goers <[email protected]> Fri, 21 Mar 2014 08:24:48 -0700
Newsgroups gmane.comp.apache.community
Message-ID <[email protected]>
In the case of logging-log4j2 the package and class names are duplicated =
with log4j to provide a bridge so that code does not need to be =
rewritten to upgrade. However, if you look at the line counts you will =
see that they are not the same as the classes are very different.

Ralph


On Mar 20, 2014, at 9:49 PM, Pawel Slusarz <[email protected]> wrote:

> Greetings,
>=20
> When looking at the Apache SF Java projects as a group, I noticed that =
a
> large number of projects have duplicate class names, ie
> both openejb and tomee have a class named
> jug.client.command.api.AbstractCommand
>=20
> When edge cases, ie test.Foo and tomcat55, tomcat60, tomcat70 get
> eliminated, it still appears that the practice of code sharing by
> drag-drop-modify is quite prevalent. Over 14,000 (out of 165,000)
> classes were shared that way in the ecosystem, and 103 projects (out =
of
> 300) are affected.
>=20
> Sometimes a measurement and visualization is all it takes to realize a
> problem and begin fixing it. Below is raw data that can help =
understand
> better what and how is happening:
>=20
> =
http://pslusarz.github.io/archeology3d/research/apache/conflicting-classes=
/index.html
>=20
> Hope this is the right place to engage in this sort of conversation.
>=20
> Paul Slusarz
>=20
> PS: Who am I and what's my agenda? I am interested in looking at large
> codebases in search of patterns. I picked Apache SF, because, unlike =
my
> company code, the data can be independently verified. The issue with
> conflicting class names became apparent as I was trying to identify =
and
> understand classes that are shared in this ecosystem. Some more
> background on this approach can be found on my blog:
> http://10kftcode.blogspot.com/
>=20
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>=20