talk114 / obfuscate4e

Automatically exported from code.google.com/p/obfuscate4e
0 stars 0 forks source link

An unexpected error while performing partial evaluation, Can't find common super class problem. #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Eclipse Version: Eclipse Galileo RCP SR1 Build id: 20090920-1017
Java version: jre1.6.0_07_win32_gdal

Ant build fails when optimizing the classes for obfuscation. Here is the
excerpt from ant log.

    [proguard] Unexpected error while performing partial evaluation:
    [proguard]   Class       = [tr/com/stm/gis/ui/GISFeatureTableControl]
    [proguard]   Method      = [createCellEditors()V]
    [proguard]   Exception   = [java.lang.IllegalArgumentException] (Can't
find common super class of [org/eclipse/jface/viewers/CellEditor] and
[net/refractions/udig/ui/BooleanCellEditor])
      [subant] Exiting
C:\D\dev\SVN\talos\source\trunk\tr.com.stm.gis\customBuildCallbacks.xml.
      [subant] Failure for target 'post.@dot' of:
C:\D\dev\SVN\talos\source\trunk\tr.com.stm.gis\customBuildCallbacks.xml
      [subant] The following error occurred while executing this line:
      [subant]
C:\D\dev\SVN\talos\source\trunk\tr.com.stm.gis\customBuildCallbacks.xml:39:
java.lang.IllegalArgumentException: Can't find common super class of
[org/eclipse/jface/viewers/CellEditor] and
[net/refractions/udig/ui/BooleanCellEditor]
     [antcall] Exiting
C:\D\dev\SVN\talos\source\trunk\tr.com.stm.gis\build.xml.

I attached the verbose output of ant and also the proguard config file. Map
file doesn't exist since it couldn't come to that stage.

org/eclipse/jface/viewers/CellEditor resides in org.eclipse.jface_3.5.1
bundle and net/refractions/udig/ui/BooleanCellEditor extends from
CellEditor. So both of these classes are in the classpath and inside the
@dot.classpath registry.

Original issue reported on code.google.com by mcaliskan on 12 Mar 2010 at 3:30

Attachments:

GoogleCodeExporter commented 8 years ago
-dontskipnonpubliclibraryclasses config solved the problem.

Original comment by mcaliskan on 17 Mar 2010 at 12:28

GoogleCodeExporter commented 8 years ago
Thanks for the fix. So we can close this ticket. I will add this fix to an 
"Howto" section of the documentation.

Original comment by schoobidoo on 24 Mar 2010 at 8:19