But even in java 5 is that the best way to find out version? Is there no direct way? Should be a enhancement request for the laminat specs if not.
On 11/3/12, Ralph Goers <ralph.go...@dslextreme.com> wrote: > In my job no one has ever mentioned even trying Java 7. We use Java 6. So > far it hasn't cost me much effort to support Java 5 as well as 6 and 7 so > code like below doesn't bother me. > > Ralph > > > On Nov 2, 2012, at 7:44 PM, Gary Gregory wrote: > >> When I see code like this: >> >> protected AbstractStringLayout(Charset charset) { >> this.charset = charset; >> boolean useClass = false; >> try { >> if (String.class.getMethod("getBytes", new Class[] >> {Charset.class}) != null) { >> useClass = true; >> } >> } catch (NoSuchMethodException ex) { >> // Not JDK 6 or greater. >> } >> encoder = useClass ? new ClassEncoder() : new NameEncoder(); >> } >> >> I wonder why we are not on Java 6. >> >> Do we expect people to port to Log4J2 on Java 5? Or to write new >> application with Log4J2 on Java 5? >> >> At my day job, we are talking about how fast we can move to Java 7 and >> leave 6 behind... >> >> Gary >> >> -- >> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org >> JUnit in Action, 2nd Ed: http://bit.ly/ECvg0 >> Spring Batch in Action: http://bit.ly/bqpbCK >> Blog: http://garygregory.wordpress.com >> Home: http://garygregory.com/ >> Tweet! http://twitter.com/GaryGregory > > -- Sent from my mobile device Regards Tushar Kapila --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org