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 205377 - @StaticResource
Summary: @StaticResource
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
Depends on:
Blocks: 96532
  Show dependency tree
Reported: 2011-11-21 19:51 UTC by Jesse Glick
Modified: 2012-01-10 21:16 UTC (History)
1 user (show)

See Also:
Exception Reporter:

Proposed patch (API plus sample usage) (15.67 KB, patch)
2011-11-21 19:54 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2011-11-21 19:51:14 UTC
An annotation to prevent the developer from accidentally moving or deleting a static resource (icon, ...) which is still referred to from live code.
Comment 1 Jesse Glick 2011-11-21 19:54:56 UTC
Created attachment 113382 [details]
Proposed patch (API plus sample usage)
Comment 2 Jesse Glick 2011-11-21 19:55:59 UTC
Please review.
Comment 3 Jaroslav Tulach 2011-11-23 16:18:01 UTC
Y01 Module API does not seem like a natural place to host this API. Consider putting this into Common Annotation API. Btw. I'd like to add there @FinalInterface during 7.2 release...
Comment 4 Jesse Glick 2011-11-23 17:43:31 UTC
Common Annotations could work too. Really openide.filesystems or something depending on it would be easier, so that I could reuse impl from LayerBuilder, but this does not seem good from a dependency standpoint.
Comment 5 Jesse Glick 2011-11-28 16:11:45 UTC
core-main #21b5127751a3
Comment 6 Quality Engineering 2011-11-29 15:56:15 UTC
Integrated into 'main-golden'
User: Jesse Glick <>
Log: #205377: @StaticResource