davidlks83 / google-spreadsheet-lib-android

Automatically exported from code.google.com/p/google-spreadsheet-lib-android
0 stars 0 forks source link

new MyTask.execute(null) is an ambiguous method #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. The program doesn't really compile, because "new MyTask.execute(null);"
is ambiguous. Admittedly I'm new to this, but I can't seem to find a solution. 
Do I have the wrong packages or something?
2.
3.

What is the expected output? What do you see instead?
Eclipse gives the following error message:
"The method execute(Object[]) is ambiguous for the type GSSAct.MyTask"
The same error message appears in GSSDetails.java and WKDetails.java as well.

What version of the product are you using? On what operating system?
OS is Windows 7 and the program version is 1

Please provide any additional information below.

Original issue reported on code.google.com by mtpouta...@gmail.com on 15 Dec 2012 at 1:30

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
There are 3 errors like this in the library. Some compilers treat it as a 
warning and compile, but others treat it as an error. I am not sure why. 
However, there is an easy fix. All you need to do is explicitly cast null to 
Object:

new MyTask().execute((Object)null);

Original comment by sergei.k...@gmail.com on 16 Jun 2013 at 12:38