Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 923] New - Unable to rename/refactor java file with svn:keywords

subclipse
Discussion topic

Back to topic list

[Issue 923] New - Unable to rename/refactor java file with svn:keywords

Author skarzhevskyy
Full name Vlad Skarzhevskyy
Date 2009-05-27 17:57:49 PDT
Message http://subclipse.tig​ris.org/issues/show_​bug.cgi?id=923
                 Issue #|923
                 Summary|Unable to rename/refactor java file with svn:keywords
               Component|subclipse
                 Version|current
                Platform|All
              OS/Version|Windows XP
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P1
            Subcomponent|core
             Assigned to|issues@subclipse
             Reported by|skarzhevskyy






------- Additional comments from skarzhevskyy at tigris dot org Wed May 27 17:57:48 -0700 2009 -------
If you have java classes with svn:keywords: Date Author Id Revision
And If comment is present in file e.g.
 /* $Id: Test3Main.java 5608 2006-12-04 20:51:45Z vlads $ */

---> Then class can't be refactored in latest version of subclipse!
  Removing comment form the file or removing svn:keywords properties allow to
refactor the classes.

 In some case I get this exception:

An exception has been caught while processing the refactoring 'Rename
Compilation Unit'
Reason:
End position lies outside document range

 In other case I got completely broken java code that need to be revered to
previous version in SVN. See example below.

 Environment: Win XP, Java 1.6.0_13, Eclipse 3.4.2, svn 1.6.2, TortoiseSVN 1.6.2

  Subverion Client Adapater: 1.6.0.2
  Subversion JavaHL 1.6.1 or 1.6.2
  SVN Team provider Core 1.6.2
  Subversion Pure Java Adapter (SVNKit) 1.6.1
-----
  Can't really tell at what version this started to happen.
  But after uninstalling 'subclipse' all the refatoring work fine in eclipse.


Very simple example of broken refactoring:
-------- ORIGINAL FILE --------------------
package com.pyx.test;
/* $Id: TestRefactoredMain2.java 5608 2006-12-04 20:51:45Z vlads $ */
public class TestRefactoredMain2 {

    public static void d() {
        System.out.println("1");
    }
    
}
----------------------------
rename TestRefactoredMain2 to TestRefactoredMain21
-------- BROKEN FILE --------------------
package com.pyx.test;
/* $Id: TestRefactoredMain21.java -1 $ */
public class TestRefactoredMain2 {

    TestRefactoredMain21d() {
        System.out.println("1");
    }
    
}
----------------------------

« Previous message in topic | 1 of 24 | Next message in topic »

Messages

Show all messages in topic

[Issue 923] New - Unable to rename/refactor java file with svn:keywords skarzhevskyy Vlad Skarzhevskyy 2009-05-27 17:57:49 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords mihobson Mark Hobson 2009-06-17 05:47:45 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords markphip Mark Phippard 2009-06-29 06:26:36 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords mihobson Mark Hobson 2009-06-29 06:49:45 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords markphip Mark Phippard 2009-06-29 06:54:46 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords mihobson Mark Hobson 2009-06-29 06:58:55 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords markphip Mark Phippard 2009-06-29 06:59:35 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords skarzhevskyy Vlad Skarzhevskyy 2009-06-29 07:11:36 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords markphip Mark Phippard 2009-06-29 07:12:59 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords mihobson Mark Hobson 2009-07-09 04:08:10 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords hohwille Jörg Hohwiller 2009-07-21 12:43:23 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords markphip Mark Phippard 2009-07-21 17:29:44 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords markphip Mark Phippard 2009-06-26 08:14:37 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords markphip Mark Phippard 2009-08-10 11:28:05 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords markphip Mark Phippard 2009-08-10 11:28:38 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords markphip Mark Phippard 2009-08-10 11:28:39 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords skarzhevskyy Vlad Skarzhevskyy 2009-08-12 13:53:40 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords skarzhevskyy Vlad Skarzhevskyy 2009-06-28 13:33:54 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords markphip Mark Phippard 2009-06-28 14:12:04 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords skarzhevskyy Vlad Skarzhevskyy 2009-06-28 14:40:48 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords markphip Mark Phippard 2009-06-28 14:45:47 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords skarzhevskyy Vlad Skarzhevskyy 2009-06-28 15:12:47 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords markphip Mark Phippard 2009-06-28 15:51:58 PDT
     [Issue 923] Unable to rename/refactor java file with svn:keywords mihobson Mark Hobson 2009-06-29 04:03:51 PDT
Messages per page: