[josm-dev] Switch to Java 6?

Ľubomír Varga luvar at plaintext.sk
Sat Nov 28 20:51:15 GMT 2009


On Saturday 28 November 2009 20:24:46 Dirk Stöcker wrote:
> On Sat, 28 Nov 2009, Frederik Ramm wrote:
> >> Good plan, but I don't think it will work. When we say Java 6 yes, then
> >> the usage of Java 6 features will grow very fast in too many places to
> >> ever build a Java 5 version later. Especially as there will be no Java 5
> >> check due to build failure anymore.
> >
> > Too bad. If this were C, we could simply do "#ifdef JAVA6" in the code
> > and thus make it compile under 1.5 and under 6, allowing tests for both.
>
> Yes. "#ifdef DEBUG" and other conditionals are one of the features I most
> miss in Java.
>

Simple use normal if/then. Java VM will recompile it at runtime. This probably 
wont work in java5 if compiled for java6 :-(
http://www.devx.com/tips/Tip/13342

This solution should work better
http://weblogs.java.net/blog/schaefa/archive/2005/01/how_to_do_condi_1.html

I personnaly dont want any complications in running josm from sources. 
Developing should be easy and not hard to start.

About to cut 1.5 support. I hope that josm users (whole osm comunity) is so 
advanced PC/MAC users that this switch wouldnt be problem. Running in virtual 
machine, on remonte server with X server isntaled or so.

I give one small point to cutt 1.5 support. Maybe we should give some pool to 
web page or to user mailing list. Result of pool shouldn be just "yes=2222, 
no=322, dontKnow=33" but arguments/reasons why no. (we know why yes :)

Have a nice day.

-- 
Odborník na všetko je zlý odborník. Ja sa snažím byť výnimkou potvrdzujúcou 
pravidlo.




More information about the josm-dev mailing list