Board index » jbuilder » Re: Can not move refactor classes in JBuilder 9 Enterprise

Re: Can not move refactor classes in JBuilder 9 Enterprise


2003-07-12 09:10:10 AM
jbuilder4
I have the same problem except quitting and attempting again doesn't work in
my case. Here's a stacktrace:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1146
at java.lang.String.substring(String.java:1480)
at com.borland.jbuilder.refactor.editor.SourceEditor.e(Unknown
Source)
at
com.borland.jbuilder.refactor.editor.SourceEditor.editSource(Unknown Source)
at
com.borland.jbuilder.refactor.editor.UrlChangeSourceEditor.editSource(Unknown
Source)
at com.borland.jbuilder.refactor.RefactoringWorker.h(Unknown Source)
at com.borland.jbuilder.refactor.RenamePackage.h(Unknown Source)
at
com.borland.jbuilder.refactor.RefactoringWrapper.doRefactoring(Unknown
Source)
at com.borland.jbuilder.refactor.RefactoringViewer.g(Unknown Source)
at com.borland.jbuilder.refactor.RefactoringViewer.c(Unknown Source)
at com.borland.jbuilder.refactor.RefactoringViewer.h(Unknown Source)
at com.borland.jbuilder.refactor.i.actionPerformed(Unknown Source)
at com.borland.primetime.actions.ActionButton.a(Unknown Source)
at com.borland.primetime.actions.ActionButton.fire(Unknown Source)
at
com.borland.primetime.actions.ActionButton.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
Matt Freedman wrote:
Quote
In JBuilder 9 Enterprise, whenever I try to do a move refactor to move a
class to a new package, the refactor window displays the message
"Project may require compilation", and it will not do the move. Building
the project does not help.

I can quit, re-open the same project in JBuilder 8 Enterprise, and the
move class works just fine.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
= Matthew M. Freedman Software Engineer =
= U. of Washington Information Systems (206) 685-6234 =
= 4545 15th Ave. NE XXXX@XXXXX.COM =
= Seattle, WA 98105 staff.washington.edu/mattf =
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
epistemic \ep-uh-STEEM-ik, ep-uh-STEM-ik\ (adjective): of or related to
knowledge or knowing
 
 

Re:Re: Can not move refactor classes in JBuilder 9 Enterprise

Vidur Dhanda wrote:
Quote
I have the same problem except quitting and attempting again doesn't work in
my case. Here's a stacktrace:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1146
at java.lang.String.substring(String.java:1480)
at com.borland.jbuilder.refactor.editor.SourceEditor.e(Unknown
Source)
at
com.borland.jbuilder.refactor.editor.SourceEditor.editSource(Unknown Source)

at
com.borland.jbuilder.refactor.editor.UrlChangeSourceEditor.editSource(Unknown
Source)
Well, I cannot reproduce your problem. Move refactoring works just fine
for me with JB9 Enterprise.
Can any of you guys with this problem post to the .attachments group an
example project (with associated steps) where it can be duplicated?
--
Regards,
Lori Olson (TeamB)
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
www.google.ca/advanced_group_search
Other Newsgroup Searches:
www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
www.visi.com/~gyles19/fom-serve/cache/1.html