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: | ClassCastException: org.netbeans.modules.refactoring.api.RenameRefactoring cannot be cast to org.netbeans.modules.refactoring.api.MoveRefactoring | ||
---|---|---|---|
Product: | java | Reporter: | Jiri Prox <jiriprox> |
Component: | Refactoring | Assignee: | Ralph Ruijs <ralphbenjamin> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | akobberup, Chiana, dds.dhawal, emiddio, FrantaM, javydreamercsw, lehel, MackSix, marco76, mmirilovic, mstarnacki, pjiricka, ytn01 |
Priority: | P1 | ||
Version: | 7.3 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 192638 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace Screenshot stacktrace stacktrace stacktrace Screenshot of error messages.log folder for error trace |
Description
Jiri Prox
2012-09-21 12:50:44 UTC
Created attachment 124709 [details]
stacktrace
Created attachment 124732 [details]
stacktrace
1)Renamed project w/ renaming folder. 2) Renamed package.
This happens every time and there is no workaround. Plus it is regression. It should be marked P1. This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=192638 changeset : 359ee70a9101 author : Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> date : Mon Sep 24 11:13:54 CEST 2012 Created attachment 124816 [details]
stacktrace
"Rename" package from "pck.sub1.sub2" to "pck"
Created attachment 124827 [details]
stacktrace
Was trying to rename a package that clashed with and existing class;
Mutex -> MutexUtil
Also, this is the second time I get this, the first time I accidentally killed the entire IDE with the screen dumper (it is too easy to do) the supplied screendump is from that run, to mee it looks identical...
Created attachment 124828 [details]
Screenshot
Also noted it has NOT changed the "package" declaration. Integrated into 'main-golden', will be available in build *201209250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/359ee70a9101 User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: Issue #218766 - ClassCastException: org.netbeans.modules.refactoring.api.RenameRefactoring cannot be cast to org.netbeans.modules.refactoring.api.MoveRefactoring Created attachment 124958 [details]
stacktrace
GUI Builder sanity test: TS_73_FormAndSupportSanity
Test suite: Refactoring --> Renaming of a package --> doing the following steps:
1. Select 'refactortest' node in the Project Window and select 'Refactor>Rename' from its popup menu
2. Type "mydata" as a new package name and press 'Refactor'
After pressing enter at point 2. the error came.
Created attachment 124963 [details]
stacktrace
Renaming a package in src/main/resources
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=192638 Created attachment 125042 [details]
stacktrace
Created a Java application with default settings,
Added a JPanel form to it, & added some controls to panel,
Added a JFrame form to the project, & added some controls to it,
Dragged & added the JPanel to the JFrame,
Refactore Renamed the base package
Created attachment 125093 [details]
Screenshot of error
Created attachment 125094 [details]
messages.log folder for error trace
Ralph, could you please fix this also for NB 7.3 Beta (before 8pm CEST 30th September)? If so, please do that even without verification. Thanks in advance. Integrated into 'releases', will be available in build *201210010205* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/3c5ce6a26def User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: Issue #218766 - ClassCastException: org.netbeans.modules.refactoring.api.RenameRefactoring cannot be cast to org.netbeans.modules.refactoring.api.MoveRefactoring *** Bug 219225 has been marked as a duplicate of this bug. *** *** Bug 219154 has been marked as a duplicate of this bug. *** *** Bug 219089 has been marked as a duplicate of this bug. *** v. |