[
https://issues.apache.org/jira/browse/NETBEANS-6272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17456828#comment-17456828
]
John commented on NETBEANS-6272:
--------------------------------
I get the following error when hitting ENTER, and then the cursor fails to both
auto-indent and manually indent until I add a character after the cursor.
{code:java}
java.lang.NoSuchMethodError: java.nio.CharBuffer.flip()Ljava/nio/CharBuffer;
at
org.netbeans.modules.java.source.parsing.FileObjects.memoryFileObject(FileObjects.java:516)
at
org.netbeans.modules.java.source.parsing.FileObjects.memoryFileObject(FileObjects.java:490)
at
org.netbeans.modules.java.source.save.Reindenter.initRegionData(Reindenter.java:268)
at
org.netbeans.modules.java.source.save.Reindenter.reindent(Reindenter.java:121)
at
org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:548)
at
org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:309)
at
org.netbeans.modules.editor.indent.IndentImpl.reindent(IndentImpl.java:282)
at org.netbeans.modules.editor.indent.api.Indent.reindent(Indent.java:146)
at org.netbeans.modules.editor.indent.api.Indent.reindent(Indent.java:130)
at
org.netbeans.editor.BaseKit$InsertBreakAction.performLineBreakInsertion(BaseKit.java:1624)
at
org.netbeans.editor.BaseKit$InsertBreakAction.access$400(BaseKit.java:1439)
at org.netbeans.editor.BaseKit$InsertBreakAction$2.run(BaseKit.java:1529)
at
org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:333)
at
org.netbeans.editor.BaseKit$InsertBreakAction.actionPerformed(BaseKit.java:1520)
at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:322)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1668)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2882)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2929)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2845)
at java.awt.Component.processEvent(Component.java:6316)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:834)
at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1102)
at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:973)
at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:799)
at java.awt.Component.dispatchEventImpl(Component.java:4760)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82){code}
!netbeans-enter-error.gif!
> Auto-indent function or pressing tab character in java editor throws
> NoSuchMethodError
> --------------------------------------------------------------------------------------
>
> Key: NETBEANS-6272
> URL: https://issues.apache.org/jira/browse/NETBEANS-6272
> Project: NetBeans
> Issue Type: Bug
> Components: editor - Formatting & Indentation
> Affects Versions: 12.6
> Reporter: Petr Miksik
> Priority: Major
> Attachments: ide.log, java_source.png, netbeans-enter-error.gif,
> ui.log
>
>
> When running NetBeans under JDK 1.8, the auto-indentation or inserting a tab
> character on a new line throws a NoSuchMethodError, if the source file is
> managed by a versioning system (see the attached picture). Running NetBeans
> under JDK 11 or higher is OK.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
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