| Summary: | drag group of files from one package to another causes exception | ||
|---|---|---|---|
| Product: | [Tools] AJDT | Reporter: | Andrew Clement <aclement> |
| Component: | Core | Assignee: | AJDT-inbox <AJDT-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | andrew.eisenberg |
| Version: | 2.1.3 | ||
| Target Milestone: | 2.2.0 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Andrew Clement
Resolving this as won't fix since the problem comes from JDT weaving being disabled. When weaving is disabled, the Java element handle identifiers for AJ compilation units are different. The JDT MoveDescriptor class expects that all handle identifiers that it gets correspond to CompilationUnits, not AJCompilationUnits, which cannot be instantiated from within JDT if JDT weaving is disabled. When an AJCompilationUnit cannot be created (but should), a PackageFragment is created instead. Hence the class cast exception. When weaving is enabled, the problem goes away. |