Re: Convert private Java class to public .Net class?
Jeroen Frijters <[email protected]> Wed, 18 May 2016 05:13:30 +0000
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Daniel,
As a general principle ikvmc does not do these types of changes, because they are easily done in a standard class file processor and ikvmc is already plenty complicated as it is ;-)
However, you can use InternalsVisibleToAttribute to make non-public classes accessible from your code:
@cli.System.Runtime.CompilerServices.InternalsVisibleToAttribute.Annotation("MyAssembly")
@interface attr { }
ikvmc -r:mscorlib.dll -assemblyattributes:attr.class ...
Regards,
Jeroen
> -----Original Message-----
> From: Daniel Wilson [mailto:[email protected]]
> Sent: Tuesday, May 17, 2016 18:07
> To: [email protected]
> Subject: [Ikvm-developers] Convert private Java class to public .Net
> class?
>
> Is there a switch to convert one, many, or all private classes in the
> JAR to public in the .Net assembly?
>
> I'm guessing there isn't ... but ... I'm also guessing I'm not the first
> one to wish there was. All of us using IKVM are in some way extending a
> Java library beyond the use its initial designer imagined.
>
> Thanks!
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j