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 239747 - Move class w/ package + project change corrupts FQNs
Summary: Move class w/ package + project change corrupts FQNs
Status: RESOLVED DUPLICATE of bug 243751
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-23 21:26 UTC by _ tboudreau
Modified: 2014-10-20 09:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2013-12-23 21:26:22 UTC
I moved a some classes to a different Maven project + package - specifically, I moved the classes Headers, HeaderValueType and Method from the package com.mastfrog.acteur.util to com.mastfrog.acteur.headers in a new project (some dependencies do not yet know about this project).

Explicit references to com.mastfrog.acteur.util.Method.GET now look like:
com.mastfrog.acteheaderstil.Method.GET


To reproduce:
1. Clone git@github.com:timboudreau/mastfrog-parent.git
2. Check out rev 40d5e3949c3258144603e5e99e42183133dced93
3. Run the script "update" in the root of the project to initialize and check out submodules in the correct version
4. Open all projects
5. In the subproject acteur-modules/acteur-parent, create a new project acteur-headers and set a dependency on acteur-util;  modify the generated pom.xml so the parent project is mastfrog-parent w/ <relativePath/> specified.
6. Move the classes named above from the acteur-util project to the new project

After refactoring, look at ClasspathResourcesPage in acteur-modules/acteur-parent/acteur-deprecated - line 89 is now:

add(f.matchMethods(com.mastfrog.acteheaderstil.Method.GET, com.mastfrog.aheadersr.util.Method.HEAD));
Comment 1 Ralph Ruijs 2014-10-20 09:41:35 UTC

*** This bug has been marked as a duplicate of bug 243751 ***