poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Coleda <w...@coleda.com>
Subject Dependency on Java 6
Date Thu, 03 Jun 2010 14:18:47 GMT
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message