Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #11317

Re: Strange problem with .jar and .class files

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe03.iad.POSTED!8ad76e89!not-for-mail
From Arved Sandstrom <asandstrom3minus1@eastlink.ca>
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Lightning/1.0b2 Thunderbird/3.1.16
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: Strange problem with .jar and .class files
References <86312e3c-b1cd-47d6-819f-5337ac665d00@t13g2000yqg.googlegroups.com> <jemu3c$tdf$1@dont-email.me> <jen0tr$5f1$1@news.albasani.net> <jen55f$an4$1@dont-email.me> <27275044.412.1326404555131.JavaMail.geo-discussion-forums@prok2> <jenu14$cmg$1@dont-email.me> <jeoe32$pdk$1@news.albasani.net> <jeoq9g$su3$1@dont-email.me> <jeors8$4dk$1@dont-email.me> <jepj8h$4nr$1@news.albasani.net> <jepqol$dga$1@dont-email.me> <23773727.883.1326497691492.JavaMail.geo-discussion-forums@prli40>
In-Reply-To <23773727.883.1326497691492.JavaMail.geo-discussion-forums@prli40>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
Lines 58
Message-ID <t75Qq.69$3_2.48@newsfe03.iad> (permalink)
X-Complaints-To abuse@newsgroups-download.com
NNTP-Posting-Date Sat, 14 Jan 2012 01:46:01 UTC
Organization Public Usenet Newsgroup Access
Date Fri, 13 Jan 2012 21:45:59 -0400
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11317

Show key headers only | View raw


On 12-01-13 07:34 PM, Lew wrote:
> On Friday, January 13, 2012 9:55:25 AM UTC-8, Jeff Higgins wrote:
>> On 01/13/2012 10:40 AM, Lew wrote:
>>> On 01/13/2012 01:08 AM, Jeff Higgins wrote:
>>>> On 01/13/2012 03:41 AM, Jeff Higgins wrote:
>>>>> On 01/13/2012 12:05 AM, Lew wrote:
>>>>>> Jeff Higgins wrote:
>>>>>>> If I look at for instance Javolution library, their build process
>>>>>>> includes a
>>>>>>> non-standard text substitution step to include or not Java generics.
>>>>>>
>>>>>> ??!
>>>>>>
>>>>> A method signature in the .templates.javolution.text package:
>>>>> public final Appendable/*TextBuilder*/ append(char c)
>>>>> becomes
>>>>> public final Appendable<TextBuilder> append(char c)
>>>>> in the javolution.text package before compilation.
>>>>>
>>>> or not, depending upon the build parameters.
>>>
>>> And again I say,
>>>
>>> ??!
>>>
>> I don't understand the question(exclamation).
> 
> Fair enough.  I'm expressing puzzlement and shock at the idea of pre-processing Java code for generics or not. It seems so bassackwards and unnecessary, though I'm sure they thought they were clever to do this.  I might have contented my self with a -target 1.4 (and appropriate bootclasspath) rather than manipulating source, presumably to support a ten-year-old version of Java.
> 
> Or better, freeze the Java 1.4 library and just freaking use the freaking generics for all current work.
> 
> So I was expressing my "WTF?" over their technique.
> 
I'm with you on this one. It occurs to me too that if someone is using
1.5 or higher, there is going to be considerably more than just generics
that get in the way: varargs, annotations, foreach, autoboxing...and the
list continues. Then add in all the API updates, new methods or
interfaces or classes, that might be in use that 1.5 has and 1.4 does not.

I recently had to do some brand new J2SE 1.4 work, not to mention J2EE
1.3 (Servlet 2.3 etc). Blast from the past it wasn't, but it wasn't a
big job fortunately. It's a different world from 1.5+ and like you
suggest it's best to keep codebases that use the one or the other
compartmentalized and different. Otherwise you run the risk of keeping
your 1.5+ stuff stupid...even if you employ nasty tricks like the one
described above.

Mind you, not so long before I also had to do a brief foray into J2SE
1.3 work: don't ask. :-) Imagine my chagrin when I discovered that
String.split() only showed up in 1.4, I'd forgotten all about having to
split strings with indexOf() many, many years ago. :-)

AHS

-- 
...wherever the people are well informed they can be trusted with their
own government...
-- Thomas Jefferson, 1789

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Strange problem with .jar and .class files Eric Tonissen <EricTonissen@zonnet.nl> - 2012-01-12 03:40 -0800
  Re: Strange problem with .jar and .class files Jeff Higgins <jeff@invalid.invalid> - 2012-01-12 10:33 -0500
    Re: Strange problem with .jar and .class files Lew <noone@lewscanon.com> - 2012-01-12 08:14 -0800
      Re: Strange problem with .jar and .class files Jeff Higgins <jeff@invalid.invalid> - 2012-01-12 12:34 -0500
        Re: Strange problem with .jar and .class files Lew <lewbloch@gmail.com> - 2012-01-12 13:42 -0800
          Re: Strange problem with .jar and .class files Jeff Higgins <jeff@invalid.invalid> - 2012-01-12 19:38 -0500
            Re: Strange problem with .jar and .class files Lew <noone@lewscanon.com> - 2012-01-12 21:05 -0800
              Re: Strange problem with .jar and .class files Jeff Higgins <jeff@invalid.invalid> - 2012-01-13 03:41 -0500
                Re: Strange problem with .jar and .class files Jeff Higgins <jeff@invalid.invalid> - 2012-01-13 04:08 -0500
                Re: Strange problem with .jar and .class files Lew <noone@lewscanon.com> - 2012-01-13 07:40 -0800
                Re: Strange problem with .jar and .class files Jeff Higgins <jeff@invalid.invalid> - 2012-01-13 12:55 -0500
                Re: Strange problem with .jar and .class files Lew <lewbloch@gmail.com> - 2012-01-13 15:34 -0800
                Re: Strange problem with .jar and .class files Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-13 21:45 -0400
  Re: Strange problem with .jar and .class files Roedy Green <see_website@mindprod.com.invalid> - 2012-01-12 09:40 -0800
  Re: Strange problem with .jar and .class files Eric Tonissen <EricTonissen@zonnet.nl> - 2012-01-13 02:24 -0800
    Re: Strange problem with .jar and .class files Lew <noone@lewscanon.com> - 2012-01-13 07:42 -0800
      Re: Strange problem with .jar and .class files Jeff Higgins <jeff@invalid.invalid> - 2012-01-13 13:18 -0500
        Re: Strange problem with .jar and .class files Lew <lewbloch@gmail.com> - 2012-01-13 15:40 -0800

csiph-web