I am using POI in many application that do not have Java 1.6. Adding a 1.6 dependency would not allow the use of POI 3.7 in my environment.
Please the older getBytes(String) ! Paul Spencer On Jun 3, 2010, at 10:18 AM, Will Coleda wrote: > The web site (http://poi.apache.org/howtobuild.html) and the ant help > task indicate that POI only needs java 1.5, but we have at least one > 1.6 dependency: > > [javac] D:/Documents and Settings/501600804/workspace-mye/POI > Build/src/java/org/apache/poi/poifs/crypt/Decryptor.java:52: cannot > find symbol > [javac] symbol : method getBytes(java.nio.charset.Charset) > [javac] location: class java.lang.String > [javac] byte[] hash = > sha1.digest(password.getBytes(Charset.forName("UTF-16LE"))); > > > Looks like this getBytes variant was added in 1.6. > > Is there a reason to stay at 5 (in which case we can patch this to use > the older getBytes(String), or should we update the site & docs to > refer to 6 for working with svn (and 3.7, if this will be included in > that cut)? > > -- > Will "Coke" Coleda > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
