Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #14798
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | Lew <lewbloch@gmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Oops! Integer.compare |
| Date | Fri, 25 May 2012 13:23:41 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 25 |
| Message-ID | <b8a6f8d8-ea0e-4e38-adc9-7c81dd804ab5@googlegroups.com> (permalink) |
| References | <ksjvr7t25pu5p56v9cfbdci5biqqadb2uc@4ax.com> |
| NNTP-Posting-Host | 69.28.149.29 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1337977422 2312 127.0.0.1 (25 May 2012 20:23:42 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Fri, 25 May 2012 20:23:42 +0000 (UTC) |
| In-Reply-To | <ksjvr7t25pu5p56v9cfbdci5biqqadb2uc@4ax.com> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T |
| User-Agent | G2/1.0 |
| Xref | csiph.com comp.lang.java.programmer:14798 |
Show key headers only | View raw
Roedy Green wrote: > I was doing some subtraction in sort Comparators, when I noticed a > method Integer.compare that would handle the nice cases properly. > > I thought to myself, I wonder why I never noticed that before. (Turns > out it was introduced in 1.7). > > The catch was though that Jet stopped working. > > Why? > > Jet only supports up to Java 1.6. > > When I compile with switches to generate Java 1.6 code, it is happy to > use new 1.7 code from the library. It then generates class files and > jars marked as legit 1.6 code. Ouch! > > The official way to do this is to find old rt.jars to generate old > code. Is that the best way to catch these errors? Yes. You use Java 6 boot JARs in the "-bootclasspath" argument to "javac". -- Lew
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Oops! Integer.compare Roedy Green <see_website@mindprod.com.invalid> - 2012-05-25 12:00 -0700 Re: Oops! Integer.compare Lew <lewbloch@gmail.com> - 2012-05-25 13:23 -0700 Re: Oops! Integer.compare Owen Jacobson <angrybaldguy@gmail.com> - 2012-05-29 20:18 -0400
csiph-web