[Gvsig_english] GvSIG 2.0 Java 1.6 support

Francisco José Peñarrubia fjp at scolab.es
Fri Feb 20 09:48:24 CET 2009


Changes maybe done easyly, in this case. You only need to comment some 
lines:

//                if (!labelShape.contains(i, j) // contains seems to 
don't detect points placed in the rectangle boundaries
//                        && !labelShape.intersects(i, j, i, j)) {
//                    continue;
//                }

in file 
extSimbology/src/org.gvsig.simbology.fmap.GeneralLabellingStrategy.java 
(line 564, method isOverlapping).
Although I will prefer to compile everything with 1.6. In this case, 
changes are easier: change Curve.crossingsForPath in GeneralPathX with 
the new call
Curve.pointCrossingsForPath(getPathIterator(null), x, y);
or better, reimplement the method contains in GeneralPath without using 
Curve (is not a public API, just a public class from Sun).

Hope this helps.

Fran Peñarrubia.
gvSIG Team.

Jorge Sanz escribió:
> Ben,
>
> First, we really appreciate your comments and offer to help testing gvSIG, be sure we will use both :)
>
> And second, yes, gvSIG dev team have studied to switch to java 1.6, and how it will impact on current code base. As you know upgrading to a new JVM is one of the most serious upgrades for any java soft and it has to be done carefully in order to maintain functionalities and stability.
>
> So, briefly, I'm pretty sure gvSIG 2.0 will be released for Java 1.6 but I'm have no idea when this change will be done.
>
> Hope it helps, and sorry for not having more details at this moment.
>
> Best regards
> --
> Jorge Gaspar Sanz Salinas
> Ingeniero en Geodesia y Cartografía
> Prodevelop S.L. - Valencia - España
> Tlf.:  96.351.06.12 - Fax:   96.351.09.68 
> jsanz[en]prodevelop[punto]es
> http://www.prodevelop.es
>
>
>   
>> -----Original Message-----
>> From: gvsig_internacional-bounces at runas.cap.gva.es [mailto:gvsig_internacional-
>> bounces at runas.cap.gva.es] On Behalf Of Benjamin Ducke
>> Sent: Thursday, February 19, 2009 7:02 PM
>> To: Users and Developers mailing list
>> Subject: [Gvsig_english] GvSIG 2.0 Java 1.6 support
>>
>> Dear developers,
>>
>> I am writing because I am a bit worried about Java 1.6 in gvSIG 2.0.
>> I understand that all development is based on Java 1.5 at the moment
>> and that it would be a major effort to switch the entire development
>> process to 1.6.
>>
>> However, as far as I can see, the only part of gvSIG 12xx currently
>> not working with 1.6 is the labeling dialogs. I think it would be
>> a shame if this remained so in the final version and users could
>> make no use of the dramatically increased speed and Windows Vista
>> compatibility of Java 1.6. In addition, newer versions of Mac OS X
>> come with Java 1.6 "hard-wired" and a downgrade is not easy for Mac
>> users.
>>
>> After all, gvSIG 1.1.2 works just fine with Java 1.6 and I think this
>> would be a serious regression for 2.0!
>>
>> I would like to appeal to you to consider having some sort of Java 1.6
>> compatibility test before the release of version 2.0. I offer my full
>> support in testing for 1.6 compatibility and would try to help improving
>> it using the limited Java knowledge I have.
>>
>> Best,
>>
>> Ben
>>
>>
>>
>> --
>> Benjamin Ducke
>> Senior Applications Support and Development Officer
>>
>> Oxford Archaeology Ltd
>> Janus House
>> Osney Mead
>> OX2 0ES
>> Oxford, U.K.
>>
>> Tel: +44 (0)1865 263 800 (switchboard)
>> Tel: +44 (0)1865 980 758 (direct)
>> Fax :+44 (0)1865 793 496
>> benjamin.ducke at oxfordarch.co.uk
>>
>>
>>
>>
>> ------
>> Files attached to this email may be in ISO 26300 format (OASIS Open Document
>> Format). If you have difficulty opening them, please visit http://iso26300.info
>> for more information.
>>
>> _______________________________________________
>> Gvsig_internacional mailing list
>> Gvsig_internacional at runas.cap.gva.es
>> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
>>     
>
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at runas.cap.gva.es
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
>   



More information about the Gvsig_internacional mailing list