|
From: Alan E. <ala...@gm...> - 2013-04-17 18:24:03
|
One reason is: I think 5.1 is very close to being released, and we just have a few more patches to accept and we can bump trunk to the next version. Another reason is: I think it is beneficial to work on 2 different java versions, and the mac users will probably agree. Another reason is: while users all agree, the developers do not. On Wed, Apr 17, 2013 at 11:09 AM, Dale Anson <da...@gr...> wrote: > Alan, what did you see that makes you think we're not quite ready to move > to Java 1.7? It seems to me most of the comments were to go ahead and make > the move? > > > On Wed, Apr 17, 2013 at 12:08 PM, Dale Anson <da...@gr...> wrote: > >> The docs for javac say either 1.6 or 6 will work. I'm not sure about >> passing the source value through ant. I tested using -source with javac on >> the command line. >> >> >> On Wed, Apr 17, 2013 at 11:42 AM, Alan Ezust <ala...@gm...>wrote: >> >>> Why is it that the ant build script for jEdit which already passes a >>> -source of 1.6 to javac doesn't report such errors already when using a >>> java7 compiler? >>> >>> Also, for the -source, should it be "1.6" or "6" ? >>> >>> >>> On Tue, Apr 16, 2013 at 2:04 PM, Dale Anson <da...@gr...> wrote: >>> >>>> Thomas, you need to use -source 1.6. The actual target depends on the >>>> -source value, even if you set the target specifically. I think there is an >>>> error in the documentation -- it says the default value for -source is 1.6. >>>> However, not explicitly setting the -source for the Java 7 javac will >>>> produce Java 7 bytecode. If you set -source 1.6, you'll see errors like >>>> this: >>>> >>>> error: diamond operator is not supported in -source 1.6 >>>> HashMap<String, String> map = new HashMap<>(); >>>> ^ >>>> (use -source 7 or higher to enable diamond operator) >>>> >>>> You can check the major version of your class files by running javap >>>> -verbose classname. 51 means you have Java 7, 50 means you have Java 6. >>>> >>>> Dale >>>> >>>> >>>> >>>> >>>> >>>> On Tue, Apr 16, 2013 at 2:19 PM, thomasmey <tho...@we...> wrote: >>>> >>>>> Hi, >>>>> >>>>> my changes are incompatible against Java 6 only by accident! I use a >>>>> Java 7 >>>>> runtime, do my changes and they compile fine, against the Java 7 >>>>> libraries >>>>> with -target 1.6 option! I guess my changes break only against the >>>>> Java 6 >>>>> runtime libraries, because of some Generics added in Java 7. Is there >>>>> a way >>>>> to detect these incompatible changes in Java 7 easily? >>>>> >>>>> I think as we don't use any of the new library functions, like >>>>> FileWatches >>>>> or something like that we should stay compatible against Java 6. The >>>>> person >>>>> who opened a bug regarding eCS (i.e. OS/2) will also be happy this way >>>>> :-) >>>>> >>>>> kind regards >>>>> thomas >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://jedit.9.x6.nabble.com/jEdit-devel-should-jEdit-5-1-depend-on-Java-6-or-7-tp5002368p5002534.html >>>>> Sent from the jedit-devel mailing list archive at Nabble.com. >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Precog is a next-generation analytics platform capable of advanced >>>>> analytics on semi-structured data. The platform includes APIs for >>>>> building >>>>> apps and a phenomenal toolset for data science. Developers can use >>>>> our toolset for easy data analysis & visualization. Get a free account! >>>>> http://www2.precog.com/precogplatform/slashdotnewsletter >>>>> -- >>>>> ----------------------------------------------- >>>>> jEdit Developers' List >>>>> jEd...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/jedit-devel >>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Precog is a next-generation analytics platform capable of advanced >>>> analytics on semi-structured data. The platform includes APIs for >>>> building >>>> apps and a phenomenal toolset for data science. Developers can use >>>> our toolset for easy data analysis & visualization. Get a free account! >>>> http://www2.precog.com/precogplatform/slashdotnewsletter >>>> -- >>>> ----------------------------------------------- >>>> jEdit Developers' List >>>> jEd...@li... >>>> https://lists.sourceforge.net/lists/listinfo/jedit-devel >>>> >>>> >>> >> > |