Hi Ben, Nice fix. I think it's fine to put the wkt file in docs resources.
Michael On 22 July 2011 14:25, Ben Caradoc-Davies <[email protected]> wrote: > Mauricio, > > this build failure was caused by your commit r37694; DataExamples > contained a WKT string literal that was 237 kB, which exceeds the limit > of 64 kB. > > Because the compiler merges string literals, this string cannot be > broken into substrings. Methods and static initialisers are also limited > to 64 kB, so StringBuilder or a static array are not workable solutions. > (Users of code-generation tools run into these all the time.) > > My solution was to externalise the WKT into file. > > Furthermore, the WKT that this string contained was malformed: it lacked > a closing ")", which I also fixed. > > Committed in r37698 to fix the build. > > I wonder if this the right place to add large amounts of example data? > Jody, can you please advise? > > Kind regards, > Ben. > > On 21/07/11 22:18, Hudson wrote: >> [ERROR] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Compilation failure >> <http://hudson.opengeo.org/hudson/job/geotools-trunk/ws/gt_trunk/docs/src/main/java/org/geotools/cql/DataExamples.java>:[91,12] >> constant string too long > > > -- > Ben Caradoc-Davies <[email protected]> > Software Engineering Team Leader > CSIRO Earth Science and Resource Engineering > Australian Resources Research Centre > > ------------------------------------------------------------------------------ > 10 Tips for Better Web Security > Learn 10 ways to better secure your business today. Topics covered include: > Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, > security Microsoft Exchange, secure Instant Messaging, and much more. > http://www.accelacomm.com/jaw/sfnl/114/51426210/ > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel > ------------------------------------------------------------------------------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
