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 241182 - Inconsistent activation/deactivation of Apply button from C/C++->Build Tools options panel
Summary: Inconsistent activation/deactivation of Apply button from C/C++->Build Tools ...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 8.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks: 239792 241753
  Show dependency tree
 
Reported: 2014-01-30 16:06 UTC by Theofanis Oikonomou
Modified: 2014-02-12 15:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed patch (2.00 KB, patch)
2014-02-12 12:55 UTC, Alexander Simon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Theofanis Oikonomou 2014-01-30 16:06:33 UTC

    
Comment 1 Theofanis Oikonomou 2014-02-03 16:16:43 UTC
Changeset: 5cb5e44d9f5e
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2014-02-03 17:18
Message:
Comment 2 Quality Engineering 2014-02-04 03:07:03 UTC
Integrated into 'main-silver', will be available in build *201402040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5cb5e44d9f5e
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #241182 - Inconsistent activation/deactivation of Apply button from C/C++->Build Tools options panel
Comment 3 Alexander Simon 2014-02-12 12:12:02 UTC
Please redo or rollback the fix. It result in bug #241753.
Comment 4 Alexander Simon 2014-02-12 12:33:48 UTC
Error in:
   ToolsCacheManagerImpl tcm = (ToolsCacheManagerImpl) ToolsPanelSupport.getToolsCacheManager();
    ToolsCacheManagerImpl savedTCM = (ToolsCacheManagerImpl) ToolsPanelSupport.getToolsCacheManager();

Two objects are same.
Comment 5 Alexander Simon 2014-02-12 12:55:36 UTC
Created attachment 145087 [details]
proposed patch
Comment 6 Theofanis Oikonomou 2014-02-12 14:13:47 UTC
will apply the patch for bug 241753 asap. Sorry for this. Thank you
Comment 7 Alexander Simon 2014-02-12 14:23:04 UTC
(In reply to Theofanis Oikonomou from comment #6)
> will apply the patch for bug 241753 asap. Sorry for this. Thank you
Other regression is:
        Iterator<? extends ServerRecord> savedHostsIter = savedHosts.iterator();
        Iterator<? extends ServerRecord> currentHostsIter = currentHosts.iterator();
        while(savedHostsIter.hasNext()) {
            if (!savedHostsIter.next().getExecutionEnvironment().equals(currentHostsIter.next().getExecutionEnvironment())) {
                return true;
            }
        }
Compared only execution environment.
Should be compared also following attributes of ServerRecord:
- authentication
- SSH key
- Display name
- Access type
- X11 forwarding
- Path mapper
Comment 8 Theofanis Oikonomou 2014-02-12 14:28:17 UTC
(In reply to Alexander Simon from comment #7)
> (In reply to Theofanis Oikonomou from comment #6)
> > will apply the patch for bug 241753 asap. Sorry for this. Thank you
> Other regression is:
>         Iterator<? extends ServerRecord> savedHostsIter =
> savedHosts.iterator();
>         Iterator<? extends ServerRecord> currentHostsIter =
> currentHosts.iterator();
>         while(savedHostsIter.hasNext()) {
>             if
> (!savedHostsIter.next().getExecutionEnvironment().equals(currentHostsIter.
> next().getExecutionEnvironment())) {
>                 return true;
>             }
>         }
> Compared only execution environment.
> Should be compared also following attributes of ServerRecord:
> - authentication
> - SSH key
> - Display name
> - Access type
> - X11 forwarding
> - Path mapper

will add the extra checks asap. Thank you for pointing this out.
Comment 9 Theofanis Oikonomou 2014-02-12 15:41:46 UTC
(In reply to Theofanis Oikonomou from comment #8)
> 
> will add the extra checks asap. Thank you for pointing this out.

filed this as bug 241777