[Mono-bugs] [Bug 643202] monodroid+javac error when inheriting from an Activity that comes from a Class Library

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 1 12:09:05 EDT 2010



--- Comment #1 from Jonathan Pobst <jpobst at novell.com> 2010-10-01 16:09:04 UTC ---
[Pasting mailing list message, since it's a private list]

I get this compilation error when the MainLauncher Activity inherits from
another Activity in a Class Library that the main assembly has a reference

Error      1              System.InvalidOperationException: Command failed.
Command: C:\Program Files (x86)\Java\jdk1.6.0_20\bin\javac.exe "-d"
"bin\classes" "-classpath"
d:\MonoDroid\MonoDroidInheritActivity\monodroid    MonoDroidInheritActivity

This was tested on Preview 4 of MonoDroid.

You can reproduce by:
1. Create a Monodroid Application.
2. Create a MonoDroid Class Library.
3. Reference the class library.
4. Add class ParentActivity : Activity (which inherits Activity) to the
Class Library.
5. Change the MainLauncher Activity of the MonoDroid Application to inherit
from ParentActivity (located in the Class Library).

The result is the error message above.

If I move the ParentActivity to the main assembly project, there are no
compilation errors.

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