Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

1.1.1 is incompatible with google collection 1.0? #41

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?

Code as below:
public void testDataTable() throws TypeMismatchException{
        DataTable dt = new DataTable();
        ColumnDescription columnDescription0 = new ColumnDescription("0", ValueType.TEXT ,"Date");
        ColumnDescription columnDescription1 = new ColumnDescription("1", ValueType.NUMBER ,"new_user");

        dt.addColumn(columnDescription0 );
        dt.addColumn(columnDescription1);

        TableRow tableRow =  new TableRow();
        //Text text =  new Text();
        tableRow.addCell("2012-07-01");
        tableRow.addCell(10.0);

        //Collection<TableRow> rowsToAdd;
        //dt.addRows(tableRow );
        dt.addRow(tableRow);


        CharSequence jsonString = JsonRenderer.renderDataTable(dt, true, false);
        System.out.println("json:"+jsonString.toString());
    }





It threw the exceptions as below

java.lang.NoSuchMethodError: 
com.google.common.collect.ImmutableList.copyOf(Ljava/util/Collection;)Lcom/googl
e/common/collect/ImmutableList;
    at com.google.visualization.datasource.datatable.TableRow.getCells(Unknown Source)
    at com.google.visualization.datasource.datatable.DataTable.addRow(Unknown Source)
    at com.moto.TestGoogleAPI.testDataTable(TestGoogleAPI.java:43)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)



If I remove dependency of Google collections library version 1.0., and replace 
it with the latest Guava lib, there is no such issue. Please help take a look 
if the version 1.1.1 is incompatible with 'Google collections library version 
1.0.'


What is the expected output? What do you see instead?
There should no exception.

What version of the product are you using? On what operating system?
Mac OS

Please provide any additional information below.

Original issue reported on code.google.com by Feiyun.Z...@gmail.com on 22 Jul 2012 at 1:43

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions