This page is no longer maintained — Please continue to the home page at www.scala-lang.org

obfuscation and naming conflicts

1 reply
extempore
Joined: 2008-12-17,
User offline. Last seen 35 weeks 3 days ago.

Trying to do some profiling on scalac, I find I can no longer use my
yourkit profiling code, because:

package yourkit contains object and package with same name: d
one of them needs to be removed from classpath

Sure enough yjp.jar is obfuscated, everything is crammed down to one
letter, and com.yourkit has a package called d and a class called d. If
we can come up with a less fatal resolution that'd be good; I'm sure
this won't be the last obfuscated jar.

Randall R Schulz
Joined: 2008-12-16,
User offline. Last seen 1 year 29 weeks ago.
Re: obfuscation and naming conflicts

On Thursday May 21 2009, Paul Phillips wrote:
> Trying to do some profiling on scalac, I find I can no longer use my
> yourkit profiling code, because:
>
> package yourkit contains object and package with same name: d
> one of them needs to be removed from classpath
>
> Sure enough yjp.jar is obfuscated, everything is crammed down to one
> letter, and com.yourkit has a package called d and a class called d.
> If we can come up with a less fatal resolution that'd be good; I'm
> sure this won't be the last obfuscated jar.

Perhaps one of those obfuscation tools could be used to uniformly rename
packages and / or classes in an already obfuscated application so as to
side-step this problem?

Randall Schulz

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland