#8 reference to class not obfuscated

1.0 Beta4
open-accepted
5
2002-07-14
2002-07-11
Anonymous
No

Hello!

The term "ResourceApplet.class" in the following line of
code gets not obfuscated whether I specify ".preserve
hardcodedreferences false" or not.

protected static it.d4cms.util.LogChannel Log =
it.d4cms.util.Log.createChannel(ResourceApplet.class);

As the class itself is obfuscated (e.g. "a") but the reference
is not (still "ResourceApplet.class") the class cannot be
found by the reference. So the result is not able to run.

Regards,
Marcus

Discussion

  • Maciej Wegorkiewicz

    Logged In: YES
    user_id=577064

    I confirm the problem. Just wanted to add it here today, but
    I see there is already. So it's not just my problem.
    So we are waiting for the patch. Anyway I evaluated three
    obfuscators and consider JavaGuard to be the best, so I'd
    rather wait than try to use other one. Thanks Thorsten for
    the great job and we are waiting for the next release.

     
  • Thorsten Heit

    Thorsten Heit - 2002-07-14

    Logged In: YES
    user_id=463419

    Hi guys,

    JavaGuard is currently not able to process such references
    correctly; I'm working on a final solution for that kind of
    problem.

    As a temporary solution you should use the parameter "true"
    in the ".preserve" line instead of "false". That way terms
    such as MyClass.class in your source code will prevent
    MyClass.class from being assigned an obfuscated output name.

    Regards

    Thorsten

     
  • Thorsten Heit

    Thorsten Heit - 2002-07-14
    • labels: --> Obfuscation module
    • milestone: --> 1.0 Beta4
    • assigned_to: nobody --> glurk
    • status: open --> open-accepted
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks