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

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


           Summary: Overriding nested class must be in same java file as
                    parent
    Classification: Mono
           Product: MonoDroid
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Tools
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


The following code:

using Android.Service.Wallpaper;

namespace LiveWallpaperDemo
{
    class CubeWallpaper : WallpaperService
    {
        public override WallpaperService.Engine OnCreateEngine ()
        {
            return new CubeEngine ();
        }

        class CubeEngine : WallpaperService.Engine
        {
            public CubeEngine ()
            {
            }
        }
    }
}

Does not compile with:
CubeWallpaper_CubeEngine.java:16: an enclosing instance that contains
android.service.wallpaper.WallpaperService.Engine is required
          super ();
          ^
  1 error

Because we write the nested class into it's own .java file instead of the
parent class's .java file.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to