[Mono-bugs] [Bug 645255] Inheriting from Java.Lang.Object and implementing interface in abstract class won't compile

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 14 09:08:33 EDT 2010


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

https://bugzilla.novell.com/show_bug.cgi?id=645255#c2


Evgheniy Ponomarenco <evgheniy.ponomarenco at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |evgheniy.ponomarenco at gmail.
                   |                            |com

--- Comment #2 from Evgheniy Ponomarenco <evgheniy.ponomarenco at gmail.com> 2010-10-14 13:08:32 UTC ---
The issue in the interface itself. This does not compile either.

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

namespace HelloMonoDroid
{
    public interface IMyView { }

    public class MyView : View, IMyView
    {
        public MyView(Context context, IAttributeSet attrs) :
            base(context, attrs)
        {
            Initialize();
        }

        public MyView(Context context, IAttributeSet attrs, int defStyle) :
            base(context, attrs, defStyle)
        {
            Initialize();
        }

        private void Initialize()
        {
        }
    }
}

STACK TRACE.

 
C:\Projects\MonoDroid\MonoDroid\HelloMonoDroid\obj\Debug\android\src\helloMonoDroid\MyView.java:8:
illegal start of type
  {
  ^
  1 errors

  at MonoDroid.Utils.ProcessRocks.<ReadStandardOutput>c__Iterator4.MoveNext()
  at Monodroid.Toolbox.InvokeCommand(IEnumerable`1 commandLine)
  at Monodroid.Toolbox.InvokeJavac(String src_path)
  at Monodroid.Droidinator.CreateDalvikBytecode(List`1 javaTypes, List`1
assemblies)
  at Monodroid.Droidinator.CreateApk()
  at Monodroid.MainClass.Main(String[] argv)
C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(252,2):
error MSB6006: "monodroid.exe" exited with code 1.

-- 
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