| Summary: | Native JavaHL connector reexpands keywords on move, causing refactoring to break | ||
|---|---|---|---|
| Product: | [Technology] Subversive | Reporter: | Max Bowsher <maxb> |
| Component: | Core | Assignee: | Igor Burilo <igor.burilo> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jens.meiss, jh |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Max Bowsher
Hi i have the same Problem with Refactor->Rename under Windows XP
If i rename the Class "RefactorTest" to "RefactorTest123" it renames the File but not the Classname and the syntax gets destroyed
----------------------------------
-- File before Refactor->Rename --
-- Filename: RefactorTest.java --
----------------------------------
package de.test.subversive;
import org.apache.log4j.Logger;
/**
* TODO insert comment here
*
* @author Jens Meiß, $Author: MEISSJ $
* @version $Revision: 7405 $
* @since 26.08.2010, $Date: 2010-08-26 17:00:52 +0200 (Do, 26 Aug 2010) $
*/
public class RefactorTest {
/**
* Logger
*/
@SuppressWarnings("unused")
private static final Logger logger = Logger.getLogger(RefactorTest.class);
}
---------------------------------------
-- Result after the Refactor->Rename --
-- Filename: RefactorTest123.java --
---------------------------------------
package de.test.subversive;
import org.apache.log4j.Logger;
/**
* TODO insert comment here
*
* @author Jens Meiß, $Author: $
* @version $Revision: -1 $
* @since 26.08.2010, $Date: $
*/
public class RefactorTest {
/**
* Logger
*/
@SuppreRefactorTest123unused")
private static final Logger logger = Logger.getLogger(RefactorTest123.class);
}
What you can see in this example:
* the Classname wasn't renamed, but the Filename was
* the Classname in the Logger-Statement was renamed
* @SuppressWarnings("unused") was renamed to @SuppreRefactorTest123unused")
* the SVN-Keywords are empty
and it only happens if one of the $Author: $, $Revision: $ and $Date: $ SVN Keywords are in the Class-Comment
A class like this causes equal breakage:
/*
* $Id: MyClass.java 13242 2011-03-02 15:37:08Z jorg $
*/
package my.app.package;
public class MyClass {
}
javahl version : 1.6.12 r955767, eclipse helios sr1
When i select the generic svnkit connector the problem is solved.
Maybe this should be reported on the subversive website instead ??
Already fixed. Duplicate of bug #315279. *** This bug has been marked as a duplicate of bug 315279 *** |