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 136696 - 'Run...' context menu item should be disabled for core files
Summary: 'Run...' context menu item should be disabled for core files
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-06 20:51 UTC by Thomas Preisler
Modified: 2009-02-19 20:29 UTC (History)
0 users

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 Thomas Preisler 2008-06-06 20:51:30 UTC
From CR 6531352:
-------------------------------------------------------------------------------
>Log Session: Tuesday, March 6, 2007 2:28:38 AM PST
>System Info:
  Product Version         = Sun Studio (Build 200701170600)
  Operating System        = SunOS version 5.11 running on sparc
  Java; VM; Vendor; Home  = 1.5.0_10; Java HotSpot(TM) Client VM 1.5.0_10-b03; Sun Microsystems Inc.; /usr/jdk/instances/jdk1.5.0/jre
  System Locale; Encoding = en (sunstudio); ISO646-US
  Home Dir.; Current Dir. = /home/vs157455; /home/vs157455
  Installation; User Dir. = 
-------------------------------------------------------------------------------

Steps:
- Create project with runtime error. For example with this code:
-----------------------------------------------
#include <stdlib.h>

int main() {
  int *p = NULL;
  *p = 0;
  return (0);
}

-----------------------------------------------
- Run project
- Find core file in Files tab
- Select core file and call context menu
==> 'Run...' menu item is enabled. I think should be disabled.
Comment 1 Thomas Preisler 2008-06-06 20:53:06 UTC
layer file needs to be fixed:

    <folder name="Loaders">
        <folder name="application">
            <folder name="x-executable+elf">
                <folder name="Actions">
                    <file name="RunDialogAction.instance">
                        <attr name="instanceClass" stringvalue="org.netbeans.modules.cnd.makeproject.api.actions.RunDialogAction" />
                    </file>
                    <attr boolvalue="true" name="RunDialogAction.instance/Separator0.instance" />
                    <file name="Separator0.instance">
                        <attr name="instanceClass" stringvalue="javax.swing.JSeparator" />
                    </file>
                    <attr boolvalue="true" name="Separator0.instance/FileSystemAction.instance" />
                </folder>
            </folder>
        </folder>
    </folder>
Comment 2 soldatov 2008-09-03 13:02:06 UTC
Also object files (.o) has same menu item
Comment 3 Thomas Preisler 2008-09-19 17:53:32 UTC
Removing SSIDE keywork. The issue is not Sun Studio specific but applies to CND in general.
Comment 4 Leonid Lenyashin 2008-09-25 16:44:38 UTC
Does not look as "fix-in-65" issue. User impact is very minor.
Comment 5 Egor Ushakov 2008-10-24 12:55:29 UTC
fixed with the changeset:
http://hg.netbeans.org/main/rev/231e934eeb0a
Comment 6 soldatov 2008-12-01 09:42:48 UTC
Verified (NetBeans IDE Dev (Build 200811301401)).
Comment 7 soldatov 2008-12-01 09:42:56 UTC
Verified (NetBeans IDE Dev (Build 200811301401)).