Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-6388

StringIndexOutOfBoundsException when moving java class to default package

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.2.x
    • 3.1.1
    • drools
    • None

      -create new dynamic web project
      -create new java class in some package
      -use Refactor -> Move to move the class into default package

      =>
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(String.java:1937)
      at org.drools.eclipse.refactoring.RuleIFileMoveParticipant.getNewName(RuleIFileMoveParticipant.java:181)
      at org.drools.eclipse.refactoring.RuleIFileMoveParticipant.initialize(RuleIFileMoveParticipant.java:118)
      at org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant.initialize(RefactoringParticipant.java:105)
      at org.eclipse.ltk.core.refactoring.participants.ParticipantExtensionPoint.getParticipants(ParticipantExtensionPoint.java:100)
      at org.eclipse.ltk.core.refactoring.participants.ParticipantManager.loadMoveParticipants(ParticipantManager.java:121)
      ...

            kverlaen@redhat.com Kris Verlaenen
            lukas.jungmann@gmail.com Lukas Jungmann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: