Bug 49378 - org\apache\poi\poifs\crypt\Decryptor.java using Java 6.0 ...
Summary: org\apache\poi\poifs\crypt\Decryptor.java using Java 6.0 ...
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 3.7-dev
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-03 11:40 UTC by will
Modified: 2010-06-03 12:14 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description will 2010-06-03 11:40:34 UTC
Build failure from r951037

    [javac] D:\POI Build\src\java\org\apache\poi\poifs\crypt\Decryptor.java:107: cannot find symbol
    [javac] symbol  : method copyOf(byte[],int)
    [javac] location: class java.util.Arrays
    [javac] return Arrays.copyOf(x3, requiredKeyLength);
    [javac] ^
    [javac] D:\POI Build\src\java\org\apache\poi\poifs\crypt\Decryptor.java:120: cannot find symbol
    [javac] symbol  : method copyOf(byte[],int)
    [javac] location: class java.util.Arrays
    [javac] byte[] verifierHash = Arrays.copyOf(cipher.doFinal(info.getVerifier().getVerifierHash()), calcVerifierHash.length);
    [javac] ^
    [javac] 2 errors

This .copyOf() method was added in 6, so we have to remove it to stay 5.x compliant.
Comment 1 Nick Burch 2010-06-03 12:14:07 UTC
Fixed in r951048.