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: | import package declarations get broken after refactor moving classes between different projects | ||
---|---|---|---|
Product: | java | Reporter: | andrzejo |
Component: | Refactoring | Assignee: | Ralph Ruijs <ralphbenjamin> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | markiewb, zolive |
Priority: | P2 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | IDE log |
Description
andrzejo
2014-02-23 08:12:57 UTC
Created attachment 145506 [details]
IDE log
I've the same trouble whith my installation on Linux(Ubuntu) or Windows 7 and Netbeans 7.4 I also see the same behavior with last version of eclipse. Netbeans and Eclipse may use the same corrupted librairy to do refactor. Whatever the refactor (add constructor or move file...) action import are duplicated and mixed ================ before refactoring: ================ package com.orange.spnp.dao; import com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource; import com.orange.spnp.exception.SPnpException; import com.orange.spnp.model.Data; import com.orange.spnp.model.SpnpStatus; import java.io.File; import java.sql.ResultSet; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import lombok.extern.log4j.Log4j2; import org.junit.Assert; import org.junit.Test; @Log4j2 public class TraceDaoTest extends DaoTest { .... ================ after refactoring: ================ package com.orange.spnp.dao; import com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource; import com.orange.spnp.exception.SPnpException; import com.orange.spnp.model.Data; import com.orange.spnp.model.SpnpStatus; import java.io.File; import java.sql.ResultSet; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import lombok.extern.log4j.Log4j2; import org.junit.Assert; import org.junit.Test; @Log4j2 public class TraceDaoTest extends DaoTestpackage com.orange.spnp.dao; import com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource; import com.orange.spnp.exception.SPnpException; import com.orange.spnp.model.Data; import com.orange.spnp.model.SpnpStatus; import java.io.File; import java.sql.ResultSet; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import lombok.extern.log4j.Log4j2; import org.junit.Assert; import org.junit.Test; public TraceDaoTest() { ... @zolive, Do you have a small test project, with steps to reproduce? *** This bug has been marked as a duplicate of bug 236885 *** |