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.
Created attachment 152361 [details] Proposed changes To support multiple execution contexts running in NetBeans I need for a project I need to change Lookup caching done in MimePath. MimePath instances are shared, created starting from static final MimePath.EMPTY instance. Now they cache their MimeLookups so an execution cannot obtain its own execution-specific MimeLookup; the MimeLookup impl cannot be plugged. I propose to create a private API with a default implementation which works exactly the same as today for NetBeans. I can then implement other ways how to provide Lookup instances for MimePath depending on the context. Please see the attahced diff. During prototyping, I've noticed that the UpdatableProxyLookup is actually unused - no one called UpdatablePL.setLookups(); possibly a leftover from the past - I removed this extra layer.
Commited as part of issue #250863