Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350796

Summary: Unable to add URI to ResourceLoadingSlotEntry
Product: [Modeling] TMF Reporter: Karsten Thoms <karsten.thoms>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jan, sebastian.zarnekow
Version: 2.0.0Flags: sebastian.zarnekow: indigo+
Target Milestone: SR1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Karsten Thoms CLA 2011-06-30 07:14:20 EDT
The set 'uris' in class ResourceLoadingSlotEntry is initialized with emptySet(). The instance bound here is Collections#EmptySet, which is unmodifiable. This leads to an UnsupportedOperationException when calling addUri().

The variable should be initialized with 
  private Set<Pattern> uris = new HashSet<Pattern>();
Comment 1 Jan Koehnlein CLA 2011-07-07 05:50:26 EDT
Fixed
Comment 2 Karsten Thoms CLA 2017-09-19 17:05:17 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:17:12 EDT
Closing all bugs that were set to RESOLVED before Neon.0