mbien commented on issue #9056:
URL: https://github.com/apache/netbeans/issues/9056#issuecomment-3600277276
ran more tests:
- also reproducible with https://github.com/apache/netbeans/pull/9044
- could narrow it down to a problem with the loop right before the usage
```diff
diff --git
a/groovy/groovy.gsp/src/org/netbeans/modules/groovy/gsp/editor/indent/GspIndenter.java
b/groovy/groovy.gsp/src/org/netbeans/modules/groovy/gsp/editor/indent/GspIndenter.java
index defb7e0..05a59dd 100644
---
a/groovy/groovy.gsp/src/org/netbeans/modules/groovy/gsp/editor/indent/GspIndenter.java
+++
b/groovy/groovy.gsp/src/org/netbeans/modules/groovy/gsp/editor/indent/GspIndenter.java
@@ -124,14 +124,14 @@
protected int
getPreservedLineInitialIndentation(JoinedTokenSequence<GspTokenId> ts) throws
BadLocationException {
int[] index = ts.index();
boolean found = false;
- do {
- if (ts.token().id().isComment()) {
- found = true;
- break;
- } else {
- break;
- }
- } while (ts.movePrevious());
+// do {
+// if (ts.token().id().isComment()) {
+// found = true;
+// break;
+// } else {
+// break;
+// }
+// } while (ts.movePrevious());
int indent = 0;
if (found) {
int lineStart = LineDocumentUtils.getLineStart2(getDocument(),
ts.offset());
```
with the loop removed, NB is able to rename the method
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists