[Mono-bugs] [Bug 633675] New: Compiling a ArrayList adapter produces incorrect intermediate java code

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Aug 23 09:46:03 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=633675

https://bugzilla.novell.com/show_bug.cgi?id=633675#c0


           Summary: Compiling a ArrayList adapter produces incorrect
                    intermediate java code
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: 64bit
        OS/Version: Windows 7
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Tools
        AssignedTo: mkestner at novell.com
        ReportedBy: pdkm2000 at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
Media Center PC 6.0; InfoPath.2; MS-RTC LM 8; OfficeLiveConnector.1.3;
OfficeLivePatch.0.0; FDM; .NET4.0C; .NET4.0E)

When trying to write a ListView using an ArrayAdapter the compiler produces
code that says;
import java.lang.Object[];
I'm guessing that should be;
import java.lang.Object;
This results in a compiler error;
C:\Program Files (x86)\Microsoft Visual Studio
10.0\\Common7\IDE\Extensions\Novell\MonoDroid for Visual
Studio\1.0.7755\bin\monodroid.exe -v --nosign
--sdk-dir="C:\android-sdk-windows" --builddir="C:\Users\paulio\Documents\Visual
Studio
2010\Projects\MonoDroidApplicationlist\MonoDroidApplicationlist\obj\Debug\android"
--framework-dir="C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework\MonoDroid\v1.0"
-S="C:\Users\paulio\Documents\Visual Studio
2010\Projects\MonoDroidApplicationlist\MonoDroidApplicationlist\obj\Debug\res"
--package="MonoDroidApplicationlist.MonoDroidApplicationlist"  --debug
--manifest-template="C:\Users\paulio\Documents\Visual Studio
2010\Projects\MonoDroidApplicationlist\MonoDroidApplicationlist\Properties\AndroidManifest.xml"
"C:\Users\paulio\Documents\Visual Studio
2010\Projects\MonoDroidApplicationlist\MonoDroidApplicationlist\bin\Debug\MonoDroidApplicationlist.dll"
  monodroid: System.InvalidOperationException: Command failed. Command:
C:\Program Files (x86)\Java\jdk1.6.0_21\bin\javac.exe "-d" "bin\classes"
"-classpath"
"C:\android-sdk-windows\platforms\android-8\android.jar;C:\Users\paulio\Documents\Visual
Studio
2010\Projects\MonoDroidApplicationlist\MonoDroidApplicationlist\obj\Debug\android\bin\mono.android.jar"
"C:\Users\paulio\Documents\Visual Studio
2010\Projects\MonoDroidApplicationlist\MonoDroidApplicationlist\obj\Debug\android\src\com\novell\monodroid\runtimeservice\IMonoRuntimeService.java"
"C:\Users\paulio\Documents\Visual Studio
2010\Projects\MonoDroidApplicationlist\MonoDroidApplicationlist\obj\Debug\android\src\mono\MonoPackageManager.java"
"C:\Users\paulio\Documents\Visual Studio
2010\Projects\MonoDroidApplicationlist\MonoDroidApplicationlist\obj\Debug\android\src\monoDroidApplicationlist\Activity1.java"
"C:\Users\paulio\Documents\Visual Studio
2010\Projects\MonoDroidApplicationlist\MonoDroidApplicationlist\obj\Debug\android\src\monoDroidApplicationlist\OrderAdapter.java"
  stderr: C:\Users\paulio\Documents\Visual Studio
2010\Projects\MonoDroidApplicationlist\MonoDroidApplicationlist\obj\Debug\android\src\monoDroidApplicationlist\OrderAdapter.java:4:
';' expected  import java.lang.Object[];                         ^  1 error 


Reproducible: Always

Steps to Reproduce:
Comile the following code snippet;
using Android.Content;using Android.OS;using Android.Runtime;using
Android.Views;using Android.Widget;using Java.Util; namespace
MonoDroidApplicationlist{     public class OrderAdapter : ArrayAdapter    {    
   private ArrayList<Order> items;              public OrderAdapter(Context
context, int textViewResourceId, ArrayList<Order> items)            :
base(context, textViewResourceId, items)        {            this.items =
items;        }                 }}

Actual Results:  
Error return code 1

Expected Results:  
Should compile

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list