[jira] [Created] (NETBEANS-5966) cleanup more of the raw type warnings
Brad Walker created NETBEANS-5966: - Summary: cleanup more of the raw type warnings Key: NETBEANS-5966 URL: https://issues.apache.org/jira/browse/NETBEANS-5966 Project: NetBeans Issue Type: Improvement Reporter: Brad Walker Assignee: Brad Walker Fix For: 12.6 More work done on cleanup of raw type warnings.. Issues like this: [nb-javac] /home/bwalker/src/netbeans/enterprise/j2ee.dd/src/org/netbeans/modules/j2ee/dd/impl/common/ComponentBeanMultiple.java:242: warning: [rawtypes] found raw type: Map [nb-javac] Map map =new java.util.HashMap(); [nb-javac] ^ [nb-javac] missing type arguments for generic class Map [nb-javac] where K,V are type-variables: [nb-javac] K extends Object declared in interface Map [nb-javac] V extends Object declared in interface Map All work is done internal to methods and non-public interfaces.. -- 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
[jira] [Resolved] (NETBEANS-5965) Freezing on project and java file creation.
[ https://issues.apache.org/jira/browse/NETBEANS-5965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Newton Nguyen resolved NETBEANS-5965. - Fix Version/s: 12.4 Resolution: Fixed I got a newer Netbeans and it works now. > Freezing on project and java file creation. > --- > > Key: NETBEANS-5965 > URL: https://issues.apache.org/jira/browse/NETBEANS-5965 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 > Environment: Windows 10 > JDK 16 >Reporter: Newton Nguyen >Priority: Major > Fix For: 12.4 > > Attachments: messages.log > > > Every time I try to create a project the wizard freezes. When I open a > project created by another Netbeans, it cannot run and it also the wizard > freezes when trying to create a new class file. -- 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
[jira] [Commented] (NETBEANS-5965) Freezing on project and java file creation.
[ https://issues.apache.org/jira/browse/NETBEANS-5965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17407695#comment-17407695 ] Geertjan Wielenga commented on NETBEANS-5965: - Please use 12.4. If you can reproduce this ptoblem there, please specify here what operating system and JDK you’re using. > Freezing on project and java file creation. > --- > > Key: NETBEANS-5965 > URL: https://issues.apache.org/jira/browse/NETBEANS-5965 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 > Environment: Windows 10 > JDK 16 >Reporter: Newton Nguyen >Priority: Major > Attachments: messages.log > > > Every time I try to create a project the wizard freezes. When I open a > project created by another Netbeans, it cannot run and it also the wizard > freezes when trying to create a new class file. -- 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
[jira] [Updated] (NETBEANS-5965) Freezing on project and java file creation.
[ https://issues.apache.org/jira/browse/NETBEANS-5965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Newton Nguyen updated NETBEANS-5965: Environment: Windows 10 JDK 16 > Freezing on project and java file creation. > --- > > Key: NETBEANS-5965 > URL: https://issues.apache.org/jira/browse/NETBEANS-5965 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 > Environment: Windows 10 > JDK 16 >Reporter: Newton Nguyen >Priority: Major > Attachments: messages.log > > > Every time I try to create a project the wizard freezes. When I open a > project created by another Netbeans, it cannot run and it also the wizard > freezes when trying to create a new class file. -- 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
[jira] [Created] (NETBEANS-5965) Freezing on project and java file creation.
Newton Nguyen created NETBEANS-5965: --- Summary: Freezing on project and java file creation. Key: NETBEANS-5965 URL: https://issues.apache.org/jira/browse/NETBEANS-5965 Project: NetBeans Issue Type: Bug Affects Versions: 12.0 Reporter: Newton Nguyen Attachments: messages.log Every time I try to create a project the wizard freezes. When I open a project created by another Netbeans, it cannot run and it also the wizard freezes when trying to create a new class file. -- 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: LSP: Extract Superclass and Extract Interface refactorings added. (#3138)
This is an automated email from the ASF dual-hosted git repository. dbalek 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 4737743 LSP: Extract Superclass and Extract Interface refactorings added. (#3138) 4737743 is described below commit 4737743d2b1f854542d5e4c5faef77b582781604 Author: Dusan Balek AuthorDate: Tue Aug 31 15:59:32 2021 +0200 LSP: Extract Superclass and Extract Interface refactorings added. (#3138) --- .../ExtractSuperclassOrInterfaceRefactoring.java | 305 ++ .../java/lsp/server/protocol/MoveRefactoring.java | 3 +- .../java/lsp/server/protocol/ServerTest.java | 340 + 3 files changed, 646 insertions(+), 2 deletions(-) diff --git a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/ExtractSuperclassOrInterfaceRefactoring.java b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/ExtractSuperclassOrInterfaceRefactoring.java new file mode 100644 index 000..e08ce01 --- /dev/null +++ b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/ExtractSuperclassOrInterfaceRefactoring.java @@ -0,0 +1,305 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.netbeans.modules.java.lsp.server.protocol; + +import com.google.gson.Gson; +import com.sun.source.tree.ClassTree; +import com.sun.source.tree.Tree; +import com.sun.source.tree.VariableTree; +import com.sun.source.util.TreePath; +import com.sun.source.util.Trees; +import java.io.File; +import java.io.IOException; +import java.net.URL; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import java.util.concurrent.CompletableFuture; +import javax.lang.model.element.Element; +import javax.lang.model.element.ElementKind; +import javax.lang.model.element.ExecutableElement; +import javax.lang.model.element.Modifier; +import javax.lang.model.element.TypeElement; +import javax.lang.model.element.VariableElement; +import org.eclipse.lsp4j.ApplyWorkspaceEditParams; +import org.eclipse.lsp4j.CodeAction; +import org.eclipse.lsp4j.CodeActionKind; +import org.eclipse.lsp4j.CodeActionParams; +import org.eclipse.lsp4j.CreateFile; +import org.eclipse.lsp4j.MessageParams; +import org.eclipse.lsp4j.MessageType; +import org.eclipse.lsp4j.Position; +import org.eclipse.lsp4j.Range; +import org.eclipse.lsp4j.ResourceOperation; +import org.eclipse.lsp4j.TextDocumentEdit; +import org.eclipse.lsp4j.TextEdit; +import org.eclipse.lsp4j.VersionedTextDocumentIdentifier; +import org.eclipse.lsp4j.WorkspaceEdit; +import org.eclipse.lsp4j.jsonrpc.messages.Either; +import org.netbeans.api.java.classpath.ClassPath; +import org.netbeans.api.java.source.ClasspathInfo; +import org.netbeans.api.java.source.CompilationController; +import org.netbeans.api.java.source.ElementHandle; +import org.netbeans.api.java.source.JavaSource; +import org.netbeans.api.java.source.ModificationResult; +import org.netbeans.api.java.source.TreePathHandle; +import org.netbeans.api.java.source.TreeUtilities; +import org.netbeans.modules.java.lsp.server.Utils; +import org.netbeans.modules.parsing.api.ResultIterator; +import org.netbeans.modules.refactoring.api.AbstractRefactoring; +import org.netbeans.modules.refactoring.api.Problem; +import org.netbeans.modules.refactoring.api.RefactoringSession; +import org.netbeans.modules.refactoring.api.impl.APIAccessor; +import org.netbeans.modules.refactoring.api.impl.SPIAccessor; +import org.netbeans.modules.refactoring.java.api.ExtractInterfaceRefactoring; +import org.netbeans.modules.refactoring.java.api.ExtractSuperclassRefactoring; +import org.netbeans.modules.refactoring.java.api.JavaRefactoringUtils; +import org.netbeans.modules.refactoring.java.api.MemberInfo; +import org.netbeans.modules.refactoring.java.spi.hooks.JavaModificationResult; +import org.netbeans.modules.refactoring.spi.RefactoringCommit; +import org.netbeans.modules.refactoring.spi.Transaction; +import org.netbeans.spi.java.classpath.support.ClassPathSupport; +import
[jira] [Created] (NETBEANS-5964) Completion does not work when parenthesized expression references property
Svatopluk Dedic created NETBEANS-5964: - Summary: Completion does not work when parenthesized expression references property Key: NETBEANS-5964 URL: https://issues.apache.org/jira/browse/NETBEANS-5964 Project: NetBeans Issue Type: Bug Components: groovy - Editor Reporter: Svatopluk Dedic Consider an example: {code:java} (someFile.canonicalFile.getParentFile).mkdirs(){code} when completion is invoked at {{mkdirs}}, the current implementation fails to identify the proper AST Path because of missing parenthesis representation in the AST node. Related to NETBEANS-5935 -- 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