This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 201425 - CDC obfuscation: Obfuscation not supported for CDC projects
Summary: CDC obfuscation: Obfuscation not supported for CDC projects
Status: REOPENED
Alias: None
Product: javame
Classification: Unclassified
Component: CDC pack (show other bugs)
Version: 7.0
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-30 08:05 UTC by vlipatov
Modified: 2013-04-09 11:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vlipatov 2011-08-30 08:05:40 UTC
In the project properties Build > Obfuscation there reads: Obfuscation not
supported for CDC projects
Comment 1 Alexandr Scherbatiy 2011-08-30 12:39:23 UTC
The obfuscation is available in the NetBeans 7.0.1
Comment 2 Alexandr Scherbatiy 2011-08-31 09:36:54 UTC
Steps to reproduce:

- Create a CDC project
- Go to the Project Properties-> Build->Obfuscating
- Press  'Install ProGuard Obfuscator Library' button
- Select the obfuscation level
- Build the project

The obfuscation works on my system
------------------------------------------------------------
Preparing output jar [CdcApplication5\build\obfuscated.jar]
  Copying resources from program jar [CdcApplication5\build\before-obfuscation.jar]
Created dir: CdcApplication5\build\obfuscated
Expanding: CdcApplication5\build\obfuscated.jar into CdcApplication5\build\obfuscated

Building jar: CdcApplication5\dist\CdcApplication5.jar
------------------------------------------------------------


However go to the Project Properties-> Build->Obfuscating again

There is the message 'Obfuscation not supported for CDC projects' in the Level Description text field.
Comment 3 Alexandr Scherbatiy 2011-08-31 11:26:31 UTC
In some cases the Project Properties-> Build-> Obfuscating  panel shows the  'Obfuscation not supported for CDC projects' message again.
Comment 4 Alexandr Scherbatiy 2011-09-01 14:32:01 UTC
It is also imposible to use the max level of obfuscation for CDC projects during project building.

Build process fails due to errors in obfuscation arguments: 
configuration refers to "unknown" class javax.microedition.midlet.MIDlet.
Comment 5 Alexandr Scherbatiy 2011-09-01 14:36:02 UTC
Steps to reproduce:

- Set High Obfuscation level for a CDC project
- Build the CDC project 
--------------------------------------------------------------
Building jar: CdcApplication6\build\before-obfuscation.jar
ProGuard, version 4.4
Reading program jar [CdcApplication6\build\before-obfuscation.jar]
Reading library jar [Java_ME_platform_SDK_3.0\lib\cdc_1.1.jar]
Reading library jar [Java_ME_platform_SDK_3.0\lib\fp_1.1.jar]
Note: duplicate definition of library class [java.io.File]
Reading library jar [Java_ME_platform_SDK_3.0\lib\pbp_1.1.jar]
Note: there were 1 duplicate class definitions.
Error: The output jar is empty. Did you specify the proper '-keep' options?
Reading library jar [Java_ME_platform_SDK_3.0\lib\secop_1.0.jar]
Note: the configuration refers to the unknown class 'javax.microedition.midlet.MIDlet'
Note: there were 1 references to unknown classes.
      You should check your configuration for typos.
CdcApplication6\nbproject\build-impl.xml:449: Obfuscation failed with error code 1.
BUILD FAILED (total time: 1 second)
--------------------------------------------------------------
Comment 6 David Strupl 2013-04-09 11:22:56 UTC
Assigning to the new owner of javame modules.