[
https://issues.apache.org/jira/browse/OAK-7547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Reschke updated OAK-7547:
--------------------------------
Fix Version/s: 1.4.25
> commons: avoid use of Guava beta APIs in StringSort
> ---------------------------------------------------
>
> Key: OAK-7547
> URL: https://issues.apache.org/jira/browse/OAK-7547
> Project: Jackrabbit Oak
> Issue Type: Technical task
> Components: commons
> Reporter: Julian Reschke
> Priority: Major
> Labels: candidate_oak_1_4
> Fix For: 1.10.0, 1.9.4, 1.4.25, 1.8.13, 1.6.18
>
> Attachments: OAK-7547.diff
>
>
> Output from compile with {{-Pguavabetachecks}}:
> {noformat}
> [INFO] Compiling 33 source files to
> /home/jenkins/jenkins-slave/workspace/Apache Jackrabbit Oak matrix/Ubuntu
> Slaves/ubuntu/jdk/JDK 1.8
> (latest)/nsfixtures/SEGMENT_TAR/profile/guavabetachecks/oak-commons/target/classes
> /home/jenkins/jenkins-slave/workspace/Apache Jackrabbit Oak matrix/Ubuntu
> Slaves/ubuntu/jdk/JDK 1.8
> (latest)/nsfixtures/SEGMENT_TAR/profile/guavabetachecks/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/sort/StringSort.java:187:
> error: [BetaApi] @Beta APIs should not be used in library code as they are
> subject to change
> writer = Files.newWriter(idFile, charset);
> ^
> (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> /home/jenkins/jenkins-slave/workspace/Apache Jackrabbit Oak matrix/Ubuntu
> Slaves/ubuntu/jdk/JDK 1.8
> (latest)/nsfixtures/SEGMENT_TAR/profile/guavabetachecks/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/sort/StringSort.java:187:
> error: [BetaApi] @Beta APIs should not be used in library code as they are
> subject to change
> writer = Files.newWriter(idFile, charset);
> ^
> (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> /home/jenkins/jenkins-slave/workspace/Apache Jackrabbit Oak matrix/Ubuntu
> Slaves/ubuntu/jdk/JDK 1.8
> (latest)/nsfixtures/SEGMENT_TAR/profile/guavabetachecks/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/sort/StringSort.java:213:
> error: [BetaApi] @Beta APIs should not be used in library code as they are
> subject to change
> CloseableIterator itr = new
> CloseableIterator(Files.newReader(sortedFile, charset));
> ^
> (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> /home/jenkins/jenkins-slave/workspace/Apache Jackrabbit Oak matrix/Ubuntu
> Slaves/ubuntu/jdk/JDK 1.8
> (latest)/nsfixtures/SEGMENT_TAR/profile/guavabetachecks/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/sort/StringSort.java:213:
> error: [BetaApi] @Beta APIs should not be used in library code as they are
> subject to change
> CloseableIterator itr = new
> CloseableIterator(Files.newReader(sortedFile, charset));
> ^
> (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> /home/jenkins/jenkins-slave/workspace/Apache Jackrabbit Oak matrix/Ubuntu
> Slaves/ubuntu/jdk/JDK 1.8
> (latest)/nsfixtures/SEGMENT_TAR/profile/guavabetachecks/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/sort/StringSort.java:225:
> error: [BetaApi] @Beta APIs should not be used in library code as they are
> subject to change
> Closer closer = Closer.create();
> ^
> (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> /home/jenkins/jenkins-slave/workspace/Apache Jackrabbit Oak matrix/Ubuntu
> Slaves/ubuntu/jdk/JDK 1.8
> (latest)/nsfixtures/SEGMENT_TAR/profile/guavabetachecks/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/sort/StringSort.java:225:
> error: [BetaApi] @Beta APIs should not be used in library code as they are
> subject to change
> Closer closer = Closer.create();
> ^
> (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> /home/jenkins/jenkins-slave/workspace/Apache Jackrabbit Oak matrix/Ubuntu
> Slaves/ubuntu/jdk/JDK 1.8
> (latest)/nsfixtures/SEGMENT_TAR/profile/guavabetachecks/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/sort/StringSort.java:225:
> error: [BetaApi] @Beta APIs should not be used in library code as they are
> subject to change
> Closer closer = Closer.create();
> ^
> (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> /home/jenkins/jenkins-slave/workspace/Apache Jackrabbit Oak matrix/Ubuntu
> Slaves/ubuntu/jdk/JDK 1.8
> (latest)/nsfixtures/SEGMENT_TAR/profile/guavabetachecks/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/sort/StringSort.java:228:
> error: [BetaApi] @Beta APIs should not be used in library code as they are
> subject to change
> closer.register(new Closeable() {
> ^
> (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> /home/jenkins/jenkins-slave/workspace/Apache Jackrabbit Oak matrix/Ubuntu
> Slaves/ubuntu/jdk/JDK 1.8
> (latest)/nsfixtures/SEGMENT_TAR/profile/guavabetachecks/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/sort/StringSort.java:234:
> error: [BetaApi] @Beta APIs should not be used in library code as they are
> subject to change
> closer.register(writer);
> ^
> (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> /home/jenkins/jenkins-slave/workspace/Apache Jackrabbit Oak matrix/Ubuntu
> Slaves/ubuntu/jdk/JDK 1.8
> (latest)/nsfixtures/SEGMENT_TAR/profile/guavabetachecks/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/sort/StringSort.java:236:
> error: [BetaApi] @Beta APIs should not be used in library code as they are
> subject to change
> closer.register(citr);
> ^
> (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> /home/jenkins/jenkins-slave/workspace/Apache Jackrabbit Oak matrix/Ubuntu
> Slaves/ubuntu/jdk/JDK 1.8
> (latest)/nsfixtures/SEGMENT_TAR/profile/guavabetachecks/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/sort/StringSort.java:239:
> error: [BetaApi] @Beta APIs should not be used in library code as they are
> subject to change
> closer.close();
> ^
> (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> 11 errors
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)