I have had some experience with obfuscating an Eclipse RCP
application. As Richard points out, obfuscation of the internal
bytecode of methods is not a problem.

However, most obfuscators also try to rename classes, methods and
packages in order to make it harder to understand what they are for,
e.g. org.foo.bar.DatabaseConnector.connect becomes a.a.a.a.a. It's
obviously necessary to exempt any exported packages from this process,
and also anything referred to by class name from outside the Java
code. In OSGi this would include the bundle activator, and in RCP it
would also include all the extensions declared in plugin.xml. All
obfuscators have some kind of interface for maintaining a list of
exempt packages, classes etc.

Regards,
Neil

On Thu, Dec 11, 2008 at 5:20 PM, Heiko Seeberger
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Recently a customer asked me if it is possible to use obfuscators for OSGi
> bundles.
> Well, I do not have any experiences. What about you? Could anyone please let
> me know if that works?
>
> Thanx
> Heiko
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to