[jira] [Commented] (NETBEANS-453) "Incorrect number of type arguments" exception during Java editing
[ https://issues.apache.org/jira/browse/NETBEANS-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17224340#comment-17224340 ] Eirik Bakke commented on NETBEANS-453: -- Haven't seen this one in a while. Fine to close. > "Incorrect number of type arguments" exception during Java editing > -- > > Key: NETBEANS-453 > URL: https://issues.apache.org/jira/browse/NETBEANS-453 > Project: NetBeans > Issue Type: Bug > Components: java - Hints >Affects Versions: 9.0 > Environment: Apache NetBeans IDE Dev (Build > incubator-netbeans-release-205-on-20180202) on OpenJDK 64-Bit Server VM > 9.0.4.1+11, Mac OS X version 10.9.5 running on x86_64; UTF-8; en_US (nb) >Reporter: Eirik Bakke >Priority: Major > > I got the following Exception while editing a Java file in NetBeans 9.0 Beta: > {noformat} > java.lang.IllegalArgumentException: Incorrect number of type arguments > at com.sun.tools.javac.model.JavacTypes.getDeclaredType0(JavacTypes.java:270) > at com.sun.tools.javac.model.JavacTypes.getDeclaredType(JavacTypes.java:245) > at > org.netbeans.modules.java.hints.errors.Utilities.resolveCapturedTypeInt(Utilities.java:619) > at > org.netbeans.modules.java.hints.errors.Utilities.resolveCapturedType(Utilities.java:538) > at > org.netbeans.modules.java.hints.errors.Utilities.resolveTypeForDeclaration(Utilities.java:519) > at > org.netbeans.modules.java.hints.errors.AddCast.computeType(AddCast.java:193) > at org.netbeans.modules.java.hints.errors.AddCast.run(AddCast.java:222) > at > org.netbeans.modules.java.hints.infrastructure.CreatorBasedLazyFixList.compute(CreatorBasedLazyFixList.java:123) > at > org.netbeans.modules.java.hints.infrastructure.LazyHintComputation.run(LazyHintComputation.java:87) > at > org.netbeans.modules.java.hints.infrastructure.LazyHintComputation.run(LazyHintComputation.java:33) > [catch] at > org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:273) > at > org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561) > at > org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786) > at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) > at > org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702) > at > org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663) > at > java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) > at > org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) > at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) > at > org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033){noformat} > Reporting this as a new JIRA issue since the old NetBeans exception reporter > no longer seems to be in use. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated: [NETBEANS-626] Invoke tableDataChanged on CountingTableModel from InsertRecordDialog
This is an automated email from the ASF dual-hosted git repository. matthiasblaesing pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new eee4150 [NETBEANS-626] Invoke tableDataChanged on CountingTableModel from InsertRecordDialog new a8e9e91 Merge pull request #2278 from Enroi/NETBEANS-626 eee4150 is described below commit eee41509466b44e19187999a911d8e8dad5cfe7e Author: Vladimir Orlyanskiy AuthorDate: Wed Jul 29 01:00:26 2020 +0300 [NETBEANS-626] Invoke tableDataChanged on CountingTableModel from InsertRecordDialog --- .../org/netbeans/modules/db/dataview/table/JXTableRowHeader.java | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ide/db.dataview/src/org/netbeans/modules/db/dataview/table/JXTableRowHeader.java b/ide/db.dataview/src/org/netbeans/modules/db/dataview/table/JXTableRowHeader.java index c4c5529..a1c0dbc 100644 --- a/ide/db.dataview/src/org/netbeans/modules/db/dataview/table/JXTableRowHeader.java +++ b/ide/db.dataview/src/org/netbeans/modules/db/dataview/table/JXTableRowHeader.java @@ -32,6 +32,7 @@ import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTable; import javax.swing.RowSorter; +import javax.swing.SwingUtilities; import javax.swing.event.RowSorterEvent; import javax.swing.event.RowSorterListener; import javax.swing.event.TableModelEvent; @@ -187,8 +188,10 @@ public final class JXTableRowHeader extends JComponent { } private void tableDataChanged() { -setCount(backingTable.getRowCount()); -fireTableDataChanged(); +SwingUtilities.invokeLater(() -> { +setCount(backingTable.getRowCount()); +fireTableDataChanged(); +}); } @Override - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated (9d6b920 -> d3a28fa)
This is an automated email from the ASF dual-hosted git repository. matthiasblaesing pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git. from 9d6b920 Merge Apache NetBeans 12.2-beta3 changes to master new 32fcad7 Fix XML Schema based completion for schemas supplied by Catalog new 69fbca5 Fix xml.schema.completion test/implementation new d3a28fa Merge pull request #2484 from matthiasblaesing/bugfix-xml-schema-completion The 4605 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .travis.yml| 2 +- .../nbproject/project.properties | 34 -- ide/xml.schema.completion/nbproject/project.xml| 17 +-- .../xml/schema/completion/RuntimeCatalogModel.java | 79 ++ .../completion/util/CompletionContextImpl.java | 9 +- .../completion/CatalogAbstractElementTest.java | 116 + .../resources/CatalogAbstractElementChild.xsd | 41 .../resources/CatalogAbstractElementCompletion.xml | 27 + .../resources/CatalogAbstractElementParent.xsd | 44 .../completion/resources/CompletionContext.xml | 29 ++ .../completion/util/CompletionContextImplTest.java | 56 ++ 11 files changed, 384 insertions(+), 70 deletions(-) create mode 100644 ide/xml.schema.completion/test/unit/src/org/netbeans/modules/xml/schema/completion/CatalogAbstractElementTest.java create mode 100644 ide/xml.schema.completion/test/unit/src/org/netbeans/modules/xml/schema/completion/resources/CatalogAbstractElementChild.xsd create mode 100644 ide/xml.schema.completion/test/unit/src/org/netbeans/modules/xml/schema/completion/resources/CatalogAbstractElementCompletion.xml create mode 100644 ide/xml.schema.completion/test/unit/src/org/netbeans/modules/xml/schema/completion/resources/CatalogAbstractElementParent.xsd create mode 100644 ide/xml.schema.completion/test/unit/src/org/netbeans/modules/xml/schema/completion/resources/CompletionContext.xml create mode 100644 ide/xml.schema.completion/test/unit/src/org/netbeans/modules/xml/schema/completion/util/CompletionContextImplTest.java - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists