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 217234 - have own mutech protected access to POMModel, perform all read/write operations under the mutex, perform refreshes only under write lock.
Summary: have own mutech protected access to POMModel, perform all read/write operatio...
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: PC Mac OS X
: P1 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-22 13:55 UTC by Milos Kleint
Modified: 2012-08-31 08:39 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
incomplete patch (84.61 KB, patch)
2012-08-24 10:09 UTC, Milos Kleint
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Milos Kleint 2012-08-22 13:55:13 UTC
see summary.

refresh() is potentially dangerous action to take on a xam model. 
also transaction handling is substandard and concurrent read operations are not entirely protected from mutations in the model.
Comment 1 Milos Kleint 2012-08-24 10:09:43 UTC
Created attachment 123523 [details]
incomplete patch
Comment 2 Milos Kleint 2012-08-24 10:12:03 UTC
there's more work to be done on wrapping read access into ROOperation. And come up with writelock protected sync. that means disabling the automatic syncing happening in model factory. createFreshModel could be the way ahead,
Comment 3 Milos Kleint 2012-08-31 08:39:21 UTC
let's see how alternate approach of using non synced models created using the createFreshModel method works out..