You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael Dodsworth (JIRA)" <ji...@apache.org> on 2014/08/30 20:10:53 UTC

[jira] [Created] (SOLR-6455) Ambiguous reference to Base64 in ClientUtils causes the Java 8 build to fail

Michael Dodsworth created SOLR-6455:
---------------------------------------

             Summary: Ambiguous reference to Base64 in ClientUtils causes the Java 8 build to fail
                 Key: SOLR-6455
                 URL: https://issues.apache.org/jira/browse/SOLR-6455
             Project: Solr
          Issue Type: Bug
         Environment: Oracle JDK 1.8.0_20-b26
Mac OSX 10.9.4
            Reporter: Michael Dodsworth
            Priority: Blocker


Compilation fails with:

{code}
common.compile-core:
    [mkdir] Created dir: /Users/mdodsworth/dev/lucene-solr/solr/build/solr-solrj/classes/java
    [javac] Compiling 122 source files to /Users/mdodsworth/dev/lucene-solr/solr/build/solr-solrj/classes/java
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
    [javac] /Users/mdodsworth/dev/lucene-solr/solr/solrj/src/java/org/apache/solr/client/solrj/util/ClientUtils.java:116: error: reference to Base64 is ambiguous
    [javac]           v = Base64.byteArrayToBase64(bytes, 0,bytes.length);
    [javac]               ^
    [javac]   both class org.apache.solr.common.util.Base64 in org.apache.solr.common.util and class java.util.Base64 in java.util match
    [javac] /Users/mdodsworth/dev/lucene-solr/solr/solrj/src/java/org/apache/solr/client/solrj/util/ClientUtils.java:119: error: reference to Base64 is ambiguous
    [javac]           v = Base64.byteArrayToBase64(bytes.array(), bytes.position(),bytes.limit() - bytes.position());
    [javac]               ^
    [javac]   both class org.apache.solr.common.util.Base64 in org.apache.solr.common.util and class java.util.Base64 in java.util match
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 errors
    [javac] 1 warning
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org