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 27812 - Multiple instances of settings created by Convertors
Summary: Multiple instances of settings created by Convertors
Status: VERIFIED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks: 27164
  Show dependency tree
 
Reported: 2002-10-04 08:53 UTC by _ lkramolis
Modified: 2008-12-22 22:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log (1011 bytes, text/plain)
2002-10-04 08:59 UTC, _ lkramolis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ lkramolis 2002-10-04 08:53:57 UTC
[This problem was originally described in issue
#27595.]

It is reproducible with PDF Settings, set
org.netbeans.modules.pdf=0 to see debug messages.

It seems creating of instances is not synchronized
and a convertor creates two instances of one setting.


Steps to reproduce:

1.1) Change "PDF Settings"' viewer property.
1.2) Select "Open File Server" - it causes debug
message.
1.3) Exit IDE - let open Options window with
selected Open File Server node.

2.1) Run IDE again - debug message should occur.
2.2) Select "PDF Settings" and back "Open File
Server" node - other debug message should occur,
BUT with different instance of Settings class.

3.1) Now try to change "PDF Settings"' viewer
property again. This change is not propagated to
.settings file.
     It is side effect of creation of two Settings
instances - listener XMLPropertiesConvertor is
added just to first instance, but user edits last
one (BUT nobody listens).
Comment 1 _ lkramolis 2002-10-04 08:59:08 UTC
Created attachment 7597 [details]
ide.log
Comment 2 _ lkramolis 2002-10-04 09:04:00 UTC
Attached ide.log shows two different Settings instances was created:
Settings@787254, Settings@5ebc6e.

XMLPropertiesConvertor instance (@19f410) was added just to first
Settings instance (@787254).

Value "/usr/bin/acroread" was not stored to .settings file -
XMLPropertiesConvertor does not listen to Settings@5ebc6e.
Comment 3 rmatous 2003-01-10 13:43:32 UTC
Tested according to L.Kramolis steps to reproduce and only one
instance was created according to output messages (em.log). 
So, marked as WORKSFORME.
Comment 4 Marian Mirilovic 2003-07-31 10:24:05 UTC
verifying.