On Mon, Jun 28, 2010 at 12:29, Fabrizio Giudici
<fabrizio.giud...@tidalwave.it> wrote:
> I disagree :-). First, the thing wouldn't be DRY: if you import
> multiple classes from the same module, you have to repeat the version
> number for each of them, while indeed there is only a single version
> number. At least, we should work with a single import for a whole
> module, but this would be a considerable change in Java syntax. As I
> don't like * imports, because I like to see all the dependencies, I
> wouldn't like a single import for a module.

Convinced - yes, I also use the * quite never and yes, it would be too
verbose and somwhat not "normalized".

OK, alternative: extra statement, maybe above the list of imports
where you can declare it by package. - OK, I see there can be one
library including several packages.... - Maybe this is exactly where
the problem comes from: There is a missing link to the library in the
core Java.

mhm, in NetBeans I can define the libraries and there I can link to
the library I like (using separate libraries for several components) -
the problem is then the module jars arriving from external sources
that may link to different versions of the same class.

The final problem is several modules relying on different versions of
the same library which then creates conflicts, right?

If it would be possible to load different versions of the same class I
guess it would introduce a LOT of potential problems when objects are
handed over from one component to another.

I only did a very few .net and I am currently not aware how Microsoft
solves the problem. In classic VB under Windows usually only one
version of a COM object was possible - registered to the system. That
said, a common problem was/is, different software installing the same
dll (maybe in even different folders) with the effect that last
application installed wins if not well considering already existing
versions. .net is more like Java - how do they solve the problem (if
they solve it)?

-- 
Martin Wildam

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javapo...@googlegroups.com.
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to