Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350796 - Unable to add URI to ResourceLoadingSlotEntry
Summary: Unable to add URI to ResourceLoadingSlotEntry
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: SR1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-30 07:14 EDT by Karsten Thoms CLA
Modified: 2017-09-19 17:17 EDT (History)
2 users (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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