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.
Summary: | Automatically change class names when cut/pasting | ||
---|---|---|---|
Product: | java | Reporter: | kitfox <kitfox> |
Component: | Source | Assignee: | Svata Dedic <sdedic> |
Status: | NEW --- | ||
Severity: | normal | CC: | ralphbenjamin |
Priority: | P3 | ||
Version: | 7.3 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
kitfox
2012-09-11 14:33:37 UTC
Reassigning to Java Source, as I think the current copy paste feature of fixing imports is similar and located there. Please reassign if needed. For the RFE, I do not think this is something the majority of users want or should have. This requires knowledge about the intention of the use of Object.class.getName(), as other uses could break when changing the type name. In case of the logger, a pre-configured level of the logger would need to be changed as well. You could change the logging line to getClass().getName(), but this could give problems as well. I think the best solution is to change the Object.class.getName() to a private constant, resulting in a compiler error when you do not update the target file. Maybe we should create a hint for that? |