From: <ste...@we...> - 2010-04-05 19:14:27
|
Just a short update about my commit yesterday, collecting all my changes since the last release. All stuff is pretty rough so far. 1) Map Correction Activating map correction (Administrator => allows to up- and downgrade any hex of the map free of any restriction (except that the tile must exist in the potential upgrade path of the initial tile of the hex). Tokens are not handled so far (especially for those cases where tokens have to be relaid). Implementation is analog to cash corrections: MapCorrectionManager creates and executes MapCorrectionActions. The intermediate steps of tile laying are handled by the Manager class as well (different to the LayTileAction, where the intermediate steps are controlled by the UI classes). 2) Network Info As a preliminary step to route connectivity and route calculation the map and tile information is used to built a network graph. A visualization can be displayed in the MapPanel under Info => NetworkInfo for the complete map or the routes available for each company. Based on the JGraphT library for the datastructure and JGraph for the visual part. It might be necessary to add those to the Eclipse classpath manually, if building through Eclipse. The ant build script is adapted. Implementation: NetworkEdges and -Vertexes are the buidling blocks. NetworkIterator implements the rules for a DFS iterator for the specific rules to traverse an 18xx map. NetworkGraphBuilder contains methods to generate and visualize the graph. 3) Export Allows to export the map as CSV-File with HexID, TileID and Orientation. Stefan |
From: Phil D. <de...@gm...> - 2010-04-06 08:58:45
|
Stefan, This all sounds really good, I went to have a test this morning and the project properties has a reliance on junit.jar located in c:\java\eclipse521 so it doesn't build straight off the CVS version at the moment. I can fix this locally to test obviously but I think the checked in version needs to be able to run standalone... Phil On 5 April 2010 20:12, <ste...@we...> wrote: > Just a short update about my commit yesterday, collecting all my changes since > the last release. All stuff is pretty rough so far. > > 1) Map Correction > Activating map correction (Administrator => allows to up- and downgrade any > hex of the map free of any restriction (except that the tile must exist in > the potential upgrade path of the initial tile of the hex). Tokens are not > handled so far (especially for those cases where tokens have to be relaid). > > Implementation is analog to cash corrections: > MapCorrectionManager creates and executes MapCorrectionActions. The > intermediate steps of tile laying are handled by the Manager class as well > (different to the LayTileAction, where the intermediate steps are controlled > by the UI classes). > > 2) Network Info > As a preliminary step to route connectivity and route calculation the map and > tile information is used to built a network graph. A visualization can be > displayed in the MapPanel under Info => NetworkInfo for the complete map or > the routes available for each company. > > Based on the JGraphT library for the datastructure and JGraph for the visual > part. It might be necessary to add those to the Eclipse classpath manually, > if building through Eclipse. The ant build script is adapted. > > Implementation: > NetworkEdges and -Vertexes are the buidling blocks. NetworkIterator implements > the rules for a DFS iterator for the specific rules to traverse an 18xx map. > NetworkGraphBuilder contains methods to generate and visualize the graph. > > 3) Export > Allows to export the map as CSV-File with HexID, TileID and Orientation. > > Stefan > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > |
From: Phil D. <de...@gm...> - 2010-04-06 09:17:15
|
Also, the JGraph and JGraphT jar files weren't in the library settings for the project...this might actually just be me being a little stupid with eclipse :p. I've got it running now and I'm going to have a play with the network info stuff Phil On 6 April 2010 09:58, Phil Davies <de...@gm...> wrote: > Stefan, > > This all sounds really good, I went to have a test this morning and > the project properties has a reliance on junit.jar located in > c:\java\eclipse521 so it doesn't build straight off the CVS version at > the moment. > > I can fix this locally to test obviously but I think the checked in > version needs to be able to run standalone... > > Phil > > On 5 April 2010 20:12, <ste...@we...> wrote: >> Just a short update about my commit yesterday, collecting all my changes since >> the last release. All stuff is pretty rough so far. >> >> 1) Map Correction >> Activating map correction (Administrator => allows to up- and downgrade any >> hex of the map free of any restriction (except that the tile must exist in >> the potential upgrade path of the initial tile of the hex). Tokens are not >> handled so far (especially for those cases where tokens have to be relaid). >> >> Implementation is analog to cash corrections: >> MapCorrectionManager creates and executes MapCorrectionActions. The >> intermediate steps of tile laying are handled by the Manager class as well >> (different to the LayTileAction, where the intermediate steps are controlled >> by the UI classes). >> >> 2) Network Info >> As a preliminary step to route connectivity and route calculation the map and >> tile information is used to built a network graph. A visualization can be >> displayed in the MapPanel under Info => NetworkInfo for the complete map or >> the routes available for each company. >> >> Based on the JGraphT library for the datastructure and JGraph for the visual >> part. It might be necessary to add those to the Eclipse classpath manually, >> if building through Eclipse. The ant build script is adapted. >> >> Implementation: >> NetworkEdges and -Vertexes are the buidling blocks. NetworkIterator implements >> the rules for a DFS iterator for the specific rules to traverse an 18xx map. >> NetworkGraphBuilder contains methods to generate and visualize the graph. >> >> 3) Export >> Allows to export the map as CSV-File with HexID, TileID and Orientation. >> >> Stefan >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel >> > |
From: <ste...@we...> - 2010-04-06 17:36:28
|
Phil: I tried to indicate those issues with Eclipse build in my e-mail, but maybe it was not prominent enough. I have some guilt here as I proposed not to include a JUnit jar into the Rails CVS, as it is a common library under a eclipse and can be activated by a few clicks. But especially as the .classpath file is also part of the CVS this causes those issues. With that current setup it seems to be better to include JUnit somewhere in the CVS. I do not know if lib is a good place, if we do that we have to exclude that from getting into the Rails built. Maybe Brett has a good suggestion where to put it (Maybe create test/lib?). Most likely this will happen soon after we move to a new VCS ;-) Stefan -----Ursprüngliche Nachricht----- Von: Phil Davies <de...@gm...> Gesendet: Apr 6, 2010 11:17:08 AM An: "Development list for Rails: an 18xx game" <rai...@li...> Betreff: Re: [Rails-devel] Map Correction, Network Info, Export Also, the JGraph and JGraphT jar files weren't in the library settings for the project...this might actually just be me being a little stupid with eclipse :p. I've got it running now and I'm going to have a play with the network info stuff Phil On 6 April 2010 09:58, Phil Davies <de...@gm...> wrote: > Stefan, > > This all sounds really good, I went to have a test this morning and > the project properties has a reliance on junit.jar located in > c:\java\eclipse521 so it doesn't build straight off the CVS version at > the moment. > > I can fix this locally to test obviously but I think the checked in > version needs to be able to run standalone... > > Phil > > On 5 April 2010 20:12, wrote: >> Just a short update about my commit yesterday, collecting all my changes since >> the last release. All stuff is pretty rough so far. >> >> 1) Map Correction >> Activating map correction (Administrator => allows to up- and downgrade any >> hex of the map free of any restriction (except that the tile must exist in >> the potential upgrade path of the initial tile of the hex). Tokens are not >> handled so far (especially for those cases where tokens have to be relaid). >> >> Implementation is analog to cash corrections: >> MapCorrectionManager creates and executes MapCorrectionActions. The >> intermediate steps of tile laying are handled by the Manager class as well >> (different to the LayTileAction, where the intermediate steps are controlled >> by the UI classes). >> >> 2) Network Info >> As a preliminary step to route connectivity and route calculation the map and >> tile information is used to built a network graph. A visualization can be >> displayed in the MapPanel under Info => NetworkInfo for the complete map or >> the routes available for each company. >> >> Based on the JGraphT library for the datastructure and JGraph for the visual >> part. It might be necessary to add those to the Eclipse classpath manually, >> if building through Eclipse. The ant build script is adapted. >> >> Implementation: >> NetworkEdges and -Vertexes are the buidling blocks. NetworkIterator implements >> the rules for a DFS iterator for the specific rules to traverse an 18xx map. >> NetworkGraphBuilder contains methods to generate and visualize the graph. >> >> 3) Export >> Allows to export the map as CSV-File with HexID, TileID and Orientation. >> >> Stefan >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel >> > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: brett l. <bre...@gm...> - 2010-04-06 17:43:28
|
The Junit jars can go into /lib. I don't think we need to segregate it. Though, the build.xml should probably be updated to exlude it from the final release package. ---Brett. On Tue, Apr 6, 2010 at 10:36 AM, <ste...@we...> wrote: > Phil: > I tried to indicate those issues with Eclipse build in my e-mail, but maybe it > was not prominent enough. > > I have some guilt here as I proposed not to include a JUnit jar into the Rails > CVS, as it is a common library under a eclipse and can be activated by a few > clicks. But especially as the .classpath file is also part of the CVS this > causes those issues. With that current setup it seems to be better to include > JUnit somewhere in the CVS. > > I do not know if lib is a good place, if we do that we have to exclude that > from getting into the Rails built. Maybe Brett has a good suggestion where to > put it (Maybe create test/lib?). Most likely this will happen soon after we > move to a new VCS ;-) > > Stefan > > > -----Ursprüngliche Nachricht----- > Von: Phil Davies <de...@gm...> > Gesendet: Apr 6, 2010 11:17:08 AM > An: "Development list for Rails: an 18xx game" <rai...@li...> > Betreff: Re: [Rails-devel] Map Correction, Network Info, Export > > Also, the JGraph and JGraphT jar files weren't in the library settings > for the project...this might actually just be me being a little stupid > with eclipse :p. I've got it running now and I'm going to have a play > with the network info stuff > > Phil > > On 6 April 2010 09:58, Phil Davies <de...@gm...> wrote: >> Stefan, >> >> This all sounds really good, I went to have a test this morning and >> the project properties has a reliance on junit.jar located in >> c:\java\eclipse521 so it doesn't build straight off the CVS version at >> the moment. >> >> I can fix this locally to test obviously but I think the checked in >> version needs to be able to run standalone... >> >> Phil >> >> On 5 April 2010 20:12, wrote: >>> Just a short update about my commit yesterday, collecting all my changes since >>> the last release. All stuff is pretty rough so far. >>> >>> 1) Map Correction >>> Activating map correction (Administrator => allows to up- and downgrade any >>> hex of the map free of any restriction (except that the tile must exist in >>> the potential upgrade path of the initial tile of the hex). Tokens are not >>> handled so far (especially for those cases where tokens have to be relaid). >>> >>> Implementation is analog to cash corrections: >>> MapCorrectionManager creates and executes MapCorrectionActions. The >>> intermediate steps of tile laying are handled by the Manager class as well >>> (different to the LayTileAction, where the intermediate steps are controlled >>> by the UI classes). >>> >>> 2) Network Info >>> As a preliminary step to route connectivity and route calculation the map and >>> tile information is used to built a network graph. A visualization can be >>> displayed in the MapPanel under Info => NetworkInfo for the complete map or >>> the routes available for each company. >>> >>> Based on the JGraphT library for the datastructure and JGraph for the visual >>> part. It might be necessary to add those to the Eclipse classpath manually, >>> if building through Eclipse. The ant build script is adapted. >>> >>> Implementation: >>> NetworkEdges and -Vertexes are the buidling blocks. NetworkIterator implements >>> the rules for a DFS iterator for the specific rules to traverse an 18xx map. >>> NetworkGraphBuilder contains methods to generate and visualize the graph. >>> >>> 3) Export >>> Allows to export the map as CSV-File with HexID, TileID and Orientation. >>> >>> Stefan >>> >>> ------------------------------------------------------------------------------ >>> Download Intel® Parallel Studio Eval >>> Try the new software tools for yourself. Speed compiling, find bugs >>> proactively, and fine-tune applications for parallel performance. >>> See why Intel Parallel Studio got high marks during beta. >>> http://p.sf.net/sfu/intel-sw-dev >>> _______________________________________________ >>> Rails-devel mailing list >>> Rai...@li... >>> https://lists.sourceforge.net/lists/listinfo/rails-devel >>> >> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > |
From: Erik V. <eri...@xs...> - 2010-04-06 19:17:53
|
Yes, I think all libraries should be put there. I am now having the same problem again with the JGraph jars: Eclipse insists that I have locally changed .classpath (which I have) and keeps insisting that I have to commit that change (which might be OK because these jars are already under /lib). Erik. -----Original Message----- From: brett lentz [mailto:bre...@gm...] Sent: Tuesday 06 April 2010 19:43 To: Development list for Rails: an 18xx game Subject: Re: [Rails-devel] Map Correction, Network Info, Export The Junit jars can go into /lib. I don't think we need to segregate it. Though, the build.xml should probably be updated to exlude it from the final release package. ---Brett. On Tue, Apr 6, 2010 at 10:36 AM, <ste...@we...> wrote: > Phil: > I tried to indicate those issues with Eclipse build in my e-mail, but maybe it > was not prominent enough. > > I have some guilt here as I proposed not to include a JUnit jar into the Rails > CVS, as it is a common library under a eclipse and can be activated by a few > clicks. But especially as the .classpath file is also part of the CVS this > causes those issues. With that current setup it seems to be better to include > JUnit somewhere in the CVS. > > I do not know if lib is a good place, if we do that we have to exclude that > from getting into the Rails built. Maybe Brett has a good suggestion where to > put it (Maybe create test/lib?). Most likely this will happen soon after we > move to a new VCS ;-) > > Stefan > > > -----Ursprüngliche Nachricht----- > Von: Phil Davies <de...@gm...> > Gesendet: Apr 6, 2010 11:17:08 AM > An: "Development list for Rails: an 18xx game" <rai...@li...> > Betreff: Re: [Rails-devel] Map Correction, Network Info, Export > > Also, the JGraph and JGraphT jar files weren't in the library settings > for the project...this might actually just be me being a little stupid > with eclipse :p. I've got it running now and I'm going to have a play > with the network info stuff > > Phil > > On 6 April 2010 09:58, Phil Davies <de...@gm...> wrote: >> Stefan, >> >> This all sounds really good, I went to have a test this morning and >> the project properties has a reliance on junit.jar located in >> c:\java\eclipse521 so it doesn't build straight off the CVS version at >> the moment. >> >> I can fix this locally to test obviously but I think the checked in >> version needs to be able to run standalone... >> >> Phil >> >> On 5 April 2010 20:12, wrote: >>> Just a short update about my commit yesterday, collecting all my changes since >>> the last release. All stuff is pretty rough so far. >>> >>> 1) Map Correction >>> Activating map correction (Administrator => allows to up- and downgrade any >>> hex of the map free of any restriction (except that the tile must exist in >>> the potential upgrade path of the initial tile of the hex). Tokens are not >>> handled so far (especially for those cases where tokens have to be relaid). >>> >>> Implementation is analog to cash corrections: >>> MapCorrectionManager creates and executes MapCorrectionActions. The >>> intermediate steps of tile laying are handled by the Manager class as well >>> (different to the LayTileAction, where the intermediate steps are controlled >>> by the UI classes). >>> >>> 2) Network Info >>> As a preliminary step to route connectivity and route calculation the map and >>> tile information is used to built a network graph. A visualization can be >>> displayed in the MapPanel under Info => NetworkInfo for the complete map or >>> the routes available for each company. >>> >>> Based on the JGraphT library for the datastructure and JGraph for the visual >>> part. It might be necessary to add those to the Eclipse classpath manually, >>> if building through Eclipse. The ant build script is adapted. >>> >>> Implementation: >>> NetworkEdges and -Vertexes are the buidling blocks. NetworkIterator implements >>> the rules for a DFS iterator for the specific rules to traverse an 18xx map. >>> NetworkGraphBuilder contains methods to generate and visualize the graph. >>> >>> 3) Export >>> Allows to export the map as CSV-File with HexID, TileID and Orientation. >>> >>> Stefan >>> >>> ---------------------------------------------------------------------------- -- >>> Download Intel® Parallel Studio Eval >>> Try the new software tools for yourself. Speed compiling, find bugs >>> proactively, and fine-tune applications for parallel performance. >>> See why Intel Parallel Studio got high marks during beta. >>> http://p.sf.net/sfu/intel-sw-dev >>> _______________________________________________ >>> Rails-devel mailing list >>> Rai...@li... >>> https://lists.sourceforge.net/lists/listinfo/rails-devel >>> >> > > ---------------------------------------------------------------------------- -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > > ---------------------------------------------------------------------------- -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > ---------------------------------------------------------------------------- -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Erik V. <eri...@xs...> - 2010-04-07 18:55:19
|
Stefan, When trying Network Info, I'm getting an exception: java.lang.UnsupportedClassVersionError: Bad version number in .class file on line 589 in ORPanel.executeNetworkInfo(): NetworkGraphBuilder nwGraph = new NetworkGraphBuilder(); Could this be another Java 5/6 clash? Another glitch: in NetworkGraphBuilder.iterator, Eclipse consider the @Override annotation to be an error. I had to remove it to make this class compile. Could you check if that annotation can and should be removed indeed? Erik. -----Original Message----- From: ste...@we... [mailto:ste...@we...] Sent: Monday 05 April 2010 21:13 To: Development game Subject: [Rails-devel] Map Correction, Network Info, Export Just a short update about my commit yesterday, collecting all my changes since the last release. All stuff is pretty rough so far. 1) Map Correction Activating map correction (Administrator => allows to up- and downgrade any hex of the map free of any restriction (except that the tile must exist in the potential upgrade path of the initial tile of the hex). Tokens are not handled so far (especially for those cases where tokens have to be relaid). Implementation is analog to cash corrections: MapCorrectionManager creates and executes MapCorrectionActions. The intermediate steps of tile laying are handled by the Manager class as well (different to the LayTileAction, where the intermediate steps are controlled by the UI classes). 2) Network Info As a preliminary step to route connectivity and route calculation the map and tile information is used to built a network graph. A visualization can be displayed in the MapPanel under Info => NetworkInfo for the complete map or the routes available for each company. Based on the JGraphT library for the datastructure and JGraph for the visual part. It might be necessary to add those to the Eclipse classpath manually, if building through Eclipse. The ant build script is adapted. Implementation: NetworkEdges and -Vertexes are the buidling blocks. NetworkIterator implements the rules for a DFS iterator for the specific rules to traverse an 18xx map. NetworkGraphBuilder contains methods to generate and visualize the graph. 3) Export Allows to export the map as CSV-File with HexID, TileID and Orientation. Stefan ---------------------------------------------------------------------------- -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Stefan F. <ste...@we...> - 2010-04-09 06:49:33
|
Erik: after my return from Stockholm to my desktop pc I had time to to figure that out: I have now a dual installation of Java 5 and Java 6 on my desktop (not possible for my laptop unfortunately due to hd constraints), that I can test under JRE 5. Stefan Some comments as those might be helpful for similar occasions: > When trying Network Info, I'm getting an exception: > java.lang.UnsupportedClassVersionError: Bad version number in .class > file > on line 589 in ORPanel.executeNetworkInfo(): > NetworkGraphBuilder nwGraph = new NetworkGraphBuilder(); > Could this be another Java 5/6 clash? That occurs if a jar was produced with a newer JDK version than the running JRE, independent of used language features. Thus I had a Java 5 compatible jar of jgraph, which was unfortunately compiled with a JDK version 6. A similar issue arises now with the JUnit jar, which I added to the repository. As it is 3.8.2 it is definitely compatible with Java 5, but as my Eclipse installation was compiled with JDK 6, it seems that this version only runs under JRE 6, but at least it should avoid raising errors at compile time. As I assume that you have a Eclipse installation of Java 5 you could replace the jar in CVS with yours, than the testcases should also run under Java 5. > Another glitch: in NetworkGraphBuilder.iterator, Eclipse consider the > @Override annotation to be an error. > I had to remove it to make this class compile. Could you check if that > annotation can and should be removed indeed? That is (again) the difference in override-annotations between 5 and 6 and I forgot to set the Java 5 compatibility flag on my laptop. |
From: Erik V. <eri...@xs...> - 2010-04-09 21:26:34
|
It works fine for me now. -----Original Message----- From: Stefan Frey [mailto:ste...@we...] Sent: Friday 09 April 2010 08:49 To: Development list for Rails: an 18xx game Subject: Re: [Rails-devel] Map Correction, Network Info, Export Erik: after my return from Stockholm to my desktop pc I had time to to figure that out: I have now a dual installation of Java 5 and Java 6 on my desktop (not possible for my laptop unfortunately due to hd constraints), that I can test under JRE 5. Stefan Some comments as those might be helpful for similar occasions: > When trying Network Info, I'm getting an exception: > java.lang.UnsupportedClassVersionError: Bad version number in .class > file > on line 589 in ORPanel.executeNetworkInfo(): > NetworkGraphBuilder nwGraph = new NetworkGraphBuilder(); > Could this be another Java 5/6 clash? That occurs if a jar was produced with a newer JDK version than the running JRE, independent of used language features. Thus I had a Java 5 compatible jar of jgraph, which was unfortunately compiled with a JDK version 6. A similar issue arises now with the JUnit jar, which I added to the repository. As it is 3.8.2 it is definitely compatible with Java 5, but as my Eclipse installation was compiled with JDK 6, it seems that this version only runs under JRE 6, but at least it should avoid raising errors at compile time. As I assume that you have a Eclipse installation of Java 5 you could replace the jar in CVS with yours, than the testcases should also run under Java 5. > Another glitch: in NetworkGraphBuilder.iterator, Eclipse consider the > @Override annotation to be an error. > I had to remove it to make this class compile. Could you check if that > annotation can and should be removed indeed? That is (again) the difference in override-annotations between 5 and 6 and I forgot to set the Java 5 compatibility flag on my laptop. ---------------------------------------------------------------------------- -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: John A. T. <ja...@ja...> - 2010-04-09 14:16:53
|
On Fri, Apr 9, 2010 at 2:49 AM, Stefan Frey <ste...@we...> wrote: > That occurs if a jar was produced with a newer JDK version than the running > JRE, independent of used language features. Thus I had a Java 5 compatible > jar of jgraph, which was unfortunately compiled with a JDK version 6. > > A similar issue arises now with the JUnit jar, which I added to the > repository. As it is 3.8.2 it is definitely compatible with Java 5, but as > my > Eclipse installation was compiled with JDK 6, it seems that this version > only > runs under JRE 6, but at least it should avoid raising errors at compile > time. As I assume that you have a Eclipse installation of Java 5 you could > replace the jar in CVS with yours, than the testcases should also run under > Java 5. Even if you have JDK 1.6 installed, you can configure Eclipse to use it as 1.5, which will produce class files compatible with 1.5 and give @Override warnings in the right places for 1.5. Under Window => Preferences => Java => Compiler, set the compliance level to 1.5. -- John A. Tamplin |
From: Stefan F. <ste...@we...> - 2010-04-09 14:38:28
|
John, thanks for pointing this out. That is actually the setting I use on my desktop (except that I forgot to set it on my laptop). However with out JRE 1.5 I will not find potential problems, if I use JRE 1.6 for running. And at least to my knowledge there is no setting to let the JRE behave like a previous version, or is there? The other issue was that I am to lazy to checkout the sources of JUnit myself and compiling it to to 5 again, if Erik can easily add one which works under Java 5. Stefan > Even if you have JDK 1.6 installed, you can configure Eclipse to use it as > 1.5, which will produce class files compatible with 1.5 and give @Override > warnings in the right places for 1.5. > > Under Window => Preferences => Java => Compiler, set the compliance level > to 1.5. |
From: John A. T. <ja...@ja...> - 2010-04-09 15:01:51
|
On Fri, Apr 9, 2010 at 10:38 AM, Stefan Frey <ste...@we...> wrote: > That is actually the setting I use on my desktop (except that I forgot to > set > it on my laptop). However with out JRE 1.5 I will not find potential > problems, if I use JRE 1.6 for running. > If you have the compliance level set to 1.5, AFAIK it will give you errors for anything that would fail on a real 1.5. For example, using String.isEmpty will give an error on a 1.6 JDK with 1.5 compliance level. > And at least to my knowledge there is no setting to let the JRE behave like > a > previous version, or is there? > If you mean changes in the actual library code rather than the compiler, no, but then there really shouldn't be breaking changes between 1.5 and 1.6 -- mostly 1.6 just added new APIs. > The other issue was that I am to lazy to checkout the sources of JUnit > myself and compiling it to to 5 again, if Erik can easily add one which works under > Java 5. > Are you saying that JUnit ships only 1.6 class files? -- John A. Tamplin |
From: Stefan F. <ste...@we...> - 2010-04-09 15:30:51
|
Answers below: > > > And at least to my knowledge there is no setting to let the JRE behave > > like a > > previous version, or is there? > > If you mean changes in the actual library code rather than the compiler, > no, but then there really shouldn't be breaking changes between 1.5 and 1.6 > -- mostly 1.6 just added new APIs. But still the bytecode of 1.6 is not compatible with 1.5 (unless the compatibility flag is set - at least I hope that it is then). Avoiding the new APIs and the different annotation rules alone is not enough. Or do I miss something here? > > > The other issue was that I am to lazy to checkout the sources of JUnit > > myself > > and compiling it to to 5 again, if Erik can easily add one which works > under > > > Java 5. > > Are you saying that JUnit ships only 1.6 class files? No I am not (have not checked that - lazy), but at least the version of the junit jar that comes along with my eclipse build on my suse linux did not work with JRE 5, even if its manifest claims to be built with 1.4. |