[jira] [Created] (NETBEANS-2139) Code completion exception causing code completion to fail.
David Botterill created NETBEANS-2139: - Summary: Code completion exception causing code completion to fail. Key: NETBEANS-2139 URL: https://issues.apache.org/jira/browse/NETBEANS-2139 Project: NetBeans Issue Type: Bug Reporter: David Botterill java.lang.AssertionError at com.sun.tools.javac.util.Assert.error(Assert.java:155) at com.sun.tools.javac.util.Assert.check(Assert.java:46) at com.sun.tools.javac.code.Scope$ScopeImpl.dble(Scope.java:410) at com.sun.tools.javac.code.Scope$ScopeImpl.enter(Scope.java:433) at com.sun.tools.javac.comp.MemberEnter.visitVarDef(MemberEnter.java:479) at com.sun.tools.javadoc.main.JavadocMemberEnter.visitVarDef(JavadocMemberEnter.java:84) at org.netbeans.lib.nbjavac.services.NBJavadocMemberEnter.visitVarDef(NBJavadocMemberEnter.java:92) at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:962) at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:172) at com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:1184) at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:962) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:673) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:749) at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:773) at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1350) at org.netbeans.lib.nbjavac.services.NBAttr.visitBlock(NBAttr.java:73) at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1026) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:673) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:749) at org.netbeans.api.java.source.TreeUtilities.attributeTree(TreeUtilities.java:880) at org.netbeans.api.java.source.TreeUtilities.attributeTree(TreeUtilities.java:810) at org.netbeans.modules.editor.java.JavaCodeTemplateProcessor.type(JavaCodeTemplateProcessor.java:716) at org.netbeans.modules.editor.java.JavaCodeTemplateProcessor.instanceOf(JavaCodeTemplateProcessor.java:548) at org.netbeans.modules.editor.java.JavaCodeTemplateProcessor.getProposedValue(JavaCodeTemplateProcessor.java:397) at org.netbeans.modules.editor.java.JavaCodeTemplateProcessor.updateDefaultValues(JavaCodeTemplateProcessor.java:143) at org.netbeans.lib.editor.codetemplates.CodeTemplateInsertHandler.processTemplate(CodeTemplateInsertHandler.java:225) at org.netbeans.lib.editor.codetemplates.CodeTemplateManagerOperation.insert(CodeTemplateManagerOperation.java:273) at org.netbeans.lib.editor.codetemplates.api.CodeTemplate.insert(CodeTemplate.java:82) at org.netbeans.modules.editor.java.JavaCompletionItem.process(JavaCompletionItem.java:566) at org.netbeans.modules.editor.java.JavaCompletionItem.defaultAction(JavaCompletionItem.java:286) at org.netbeans.modules.editor.completion.CompletionImpl.dispatchKeyEvent(CompletionImpl.java:785) at org.netbeans.modules.editor.completion.CompletionImpl.keyPressed(CompletionImpl.java:386) at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:250) at java.awt.Component.processKeyEvent(Component.java:6491) at javax.swing.JComponent.processKeyEvent(JComponent.java:2832) at java.awt.Component.processEvent(Component.java:6310) at java.awt.Container.processEvent(Container.java:2236) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2294) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771) at java.awt.Component.dispatchEventImpl(Component.java:4760) at java.awt.Container.dispatchEventImpl(Container.java:2294) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) 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:80) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90) at java.awt.EventQueue$4.run(EventQueue.java:731) at
[incubator-netbeans-website] branch asf-site updated: Automated site publishing by Jenkins build 595
This is an automated email from the ASF dual-hosted git repository. git-site-role pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-website.git The following commit(s) were added to refs/heads/asf-site by this push: new 9cf4fb6 Automated site publishing by Jenkins build 595 9cf4fb6 is described below commit 9cf4fb637230903a71c566167e1c495ec935373c Author: jenkins AuthorDate: Mon Feb 18 21:31:05 2019 + Automated site publishing by Jenkins build 595 --- content/kb/docs/java/editor-codereference.html | 2200 1 file changed, 2200 insertions(+) diff --git a/content/kb/docs/java/editor-codereference.html b/content/kb/docs/java/editor-codereference.html new file mode 100644 index 000..d7e1df0 --- /dev/null +++ b/content/kb/docs/java/editor-codereference.html @@ -0,0 +1,2200 @@ + + + + + + + +Code Assistance in the NetBeans IDE Java Editor: A Reference Guide + + + + + + + + + + + + + + + +https://fonts.googleapis.com/css?family=Open+Sans:400,700; rel="stylesheet"> + + + + + + + + + +Apache NetBeans + + + + Apache NetBeans (incubating) + + + + Community + Participate + https://blogs.apache.org/netbeans/;>Blog + Get Help + Plugins + Download + + + + + + + + + + +Just released! +Apache NetBeans 10.0 +Read more + + + + + +Code Assistance in the NetBeans IDE Java Editor: A Reference Guide + + + + Last reviewed on 2019-02-17 + + + + + + +General Editor Features + +Code Formatting +Inserting and Highlighting Braces, Brackets, and Quotes +Code Folding +Customizing Keyboard Shortcuts + + +Smart Code Completion + +Invoking Code Completion +Smart Suggestions at the Top +Camel Case Completion +Completing Keywords +Suggesting Names for Variable and Fields +Suggesting Parameters +Common Prefix Completion +Subword Completion +Chain Completion +Completion of Static Imports +Excluding Items from Completion +JPA Completion + + +Managing Imports +Generating Code + +Using the Code Generation Dialog Box +Using Code Completion + + +Code Templates + +Using Code Templates +Adding or Editing Code Templates + + +Working with Javadoc + +Displaying Javadoc +Creating Javadoc Stubs +Using Javadoc Hints +Using Code Completion for Javadoc Tags +Generating Javadoc +Analyzing Javadoc + + +Using Hints + +Using Hints to Fix Code +Surround With +Customizing Hints + + +Semantic Coloring and Highlighting + +Customizing Colors +Exporting and Importing Settings +Coloring Example +Using Highlights + + +Navigation + +Error Stripes +Navigating From the Editor: Go to +Jumping to Last Edit +Using Breadcrumbs +Switching Between Files +Using Bookmarks +Using the Navigator + + +Appendix A: Icons in the Code Completion Window + + + + + +The purpose of any integrated development environment (IDE) is to maximize productivity and support seamless development from a single tool. This reference document describes useful code assistance features, customization options, and navigation capabilities of the NetBeans IDEs Java Editor. + + + + +General Editor Features + + +Code Formatting + +Code formatting allows you to set up the editor to layout your source code in the way that you find most preferable and comfortable to work with. When you want to format your code simply press: + + + + + +Windows/Linux + + +Alt-Shift-F + + + + +macOS + + +Ctrl-Shift-F + + + + + +or, select Source Format from the menu bar or, right-click and select Format. Your code will then be formatted according to the rules specified in the Formatting pane. + + +To customize the formatting behaviour, open the formatting pane by selecting: + + + + + +Windows/Linux + + +Tools Options Editor Formatting + + + + +macOS + + +NetBeans Preferences Editor Formatting + + + + + +then select Language: Java. From the Category: drop-down list, you can select from a wide range of customizable elements such as: the number of blank lines, the size of tabs and indentation, wrapping style, etc. You can preview your changes as you make them. + + + +Inserting and Highlighting Braces, Brackets, and Quotes + +By default, the editor automatically inserts matching pairs for braces, brackets, parentheses and, quote marks. When you type an opening brace and then press Enter, the closing brace is added automatically. However, for (, [, ", and ', the editor inserts the matching pair immediately, and positions the cursor between them. + + +If, for some reason, this feature is disabled, you can enable it by selecting: + + + + + +Windows/Linux + + +Tools Options Editor
[incubator-netbeans-website] branch master updated: editor-codereference.asciidoc wrong preamble
This is an automated email from the ASF dual-hosted git repository. vieiro pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-website.git The following commit(s) were added to refs/heads/master by this push: new 1edeb53 editor-codereference.asciidoc wrong preamble 1edeb53 is described below commit 1edeb53fcdf569275b3733222df232f1f21e6269 Author: Antonio Vieiro AuthorDate: Mon Feb 18 22:28:55 2019 +0100 editor-codereference.asciidoc wrong preamble Preamble must immediately follow the level 0 header --- .../src/content/kb/docs/java/editor-codereference.asciidoc | 5 - 1 file changed, 5 deletions(-) diff --git a/netbeans.apache.org/src/content/kb/docs/java/editor-codereference.asciidoc b/netbeans.apache.org/src/content/kb/docs/java/editor-codereference.asciidoc index 99ab923..ff7857e 100644 --- a/netbeans.apache.org/src/content/kb/docs/java/editor-codereference.asciidoc +++ b/netbeans.apache.org/src/content/kb/docs/java/editor-codereference.asciidoc @@ -20,11 +20,6 @@ // The Title (Start) = Code Assistance in the NetBeans IDE Java Editor: A Reference Guide - -//== The Title (End) - -//= Metadata (Start) - :jbake-type: tutorial :jbake-tags: tutorials :jbake-status: published - 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-2127) No encuentra la clase (com/sun/awt/AWTUtilities).
[ https://issues.apache.org/jira/browse/NETBEANS-2127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16771337#comment-16771337 ] Christian Lenz commented on NETBEANS-2127: -- Hi [~Jcartagena] please use english for the headline, the description and everything else. Otherwise, we will close the ticket. Thx. > No encuentra la clase (com/sun/awt/AWTUtilities). > - > > Key: NETBEANS-2127 > URL: https://issues.apache.org/jira/browse/NETBEANS-2127 > Project: NetBeans > Issue Type: Bug > Components: apisupport - Project >Affects Versions: 10.0 > Environment: Java >Reporter: Joel Alexander Gatica Cartagena >Assignee: Joel Alexander Gatica Cartagena >Priority: Major > Labels: build > Fix For: 10.0 > > Original Estimate: 1m > Remaining Estimate: 1m > > No encuentra la clase (com/sun/awt/AWTUtilities). Por lo tanto, no puede > correr un hilo. > Al correr mi proyecto, me despliega el siguiente error: > Exception in thread "Thread-0" java.lang.NoClassDefFoundError: > com/sun/awt/AWTUtilities > > El código donde encuentra error es este: > if (progreso.getValue() == i) { > if (j != 100) { > AWTUtilities.setWindowOpacity(this, Float.valueOf((100 - j) / 100 > + "f")); > i++; > j += 2; > } > } > > Donde "progreso" en un JProgressBar, las variables "j" e "i" son de tipo > double. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2138) Issues with new build with native gradle support
Peter Steele created NETBEANS-2138: -- Summary: Issues with new build with native gradle support Key: NETBEANS-2138 URL: https://issues.apache.org/jira/browse/NETBEANS-2138 Project: NetBeans Issue Type: Improvement Components: projects - Gradle Reporter: Peter Steele Here is a summary of the issues I have found * In the project navigator pane (the one with the tree in). If you don't have a main project selected the set main project right click item doesn't appear. But if you have one selected the set main project does appear. I would say it should always appear. You can set the main project from the main menu so that is ok. * if you right click in the projects view and do a clean and build. The outputs tab in the notiifcation is not loaded up. If it is already loaded up but the focus in the notification area is on the Search Results tab, for example, then again the focus is not changed to the output tab. If the output tab is open and in focus but there is another sub tab open (like a git commit window) then again the focus doesn't change to the output window. * In the current gradle plugin, in the license section of the project properties, there used to be a box to enter the organization, this has now dissapeared in the native gradle build? Where is the replacement box located? Why was it removed? Previously I created a profile and just applied that profile to projects, now I need to select either a global license or use a gradle defined license.which is set using a netbeans.license property. The options for values here are to use absolute paths or short codes for the license I want to use. The question is what are these short codes? I tried some obvious examples for the license I want but it didn't work. Is there a list somewhere? -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2136) Support excludes and includes in Gradle SourceSets
Laszlo Kishalmi created NETBEANS-2136: - Summary: Support excludes and includes in Gradle SourceSets Key: NETBEANS-2136 URL: https://issues.apache.org/jira/browse/NETBEANS-2136 Project: NetBeans Issue Type: Improvement Components: projects - Gradle Reporter: Laszlo Kishalmi Assignee: Laszlo Kishalmi Right now explicit include and exclude patterns in a Gradle SourceSet does not get reflected in NetBeans. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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] [Assigned] (NETBEANS-2137) Better UI representation of SourceSets with Multiple Source Root Dirs.
[ https://issues.apache.org/jira/browse/NETBEANS-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Laszlo Kishalmi reassigned NETBEANS-2137: - Assignee: Laszlo Kishalmi > Better UI representation of SourceSets with Multiple Source Root Dirs. > -- > > Key: NETBEANS-2137 > URL: https://issues.apache.org/jira/browse/NETBEANS-2137 > Project: NetBeans > Issue Type: Improvement > Components: projects - Gradle >Reporter: Laszlo Kishalmi >Assignee: Laszlo Kishalmi >Priority: Major > > See the following Gradle Sample: > sourceSets { > main { > java { > srcDir 'JavaV2/Src' > srcDir 'JavaV2/API/Src' > srcDir 'JavaV2/Fedex/Src' > srcDir 'JavaV2/Library/Src' > srcDir 'JavaV2/Products/Src' > srcDir 'JavaV2/Protocol/Src' > srcDir 'JavaV2/Qryptonite/Src' > srcDir 'JavaV2/Security/Src' > srcDir 'JavaV2/Shipping/Src' > srcDir 'JavaV2/Spring/Src' > srcDir 'JavaV2/Ui/Src' > exclude '**/doc-files/**' > exclude 'makefile' > exclude '**/makefile' > } -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2137) Better UI representation of SourceSets with Multiple Source Root Dirs.
[ https://issues.apache.org/jira/browse/NETBEANS-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Laszlo Kishalmi updated NETBEANS-2137: -- Component/s: projects - Gradle > Better UI representation of SourceSets with Multiple Source Root Dirs. > -- > > Key: NETBEANS-2137 > URL: https://issues.apache.org/jira/browse/NETBEANS-2137 > Project: NetBeans > Issue Type: Improvement > Components: projects - Gradle >Reporter: Laszlo Kishalmi >Priority: Major > > See the following Gradle Sample: > sourceSets { > main { > java { > srcDir 'JavaV2/Src' > srcDir 'JavaV2/API/Src' > srcDir 'JavaV2/Fedex/Src' > srcDir 'JavaV2/Library/Src' > srcDir 'JavaV2/Products/Src' > srcDir 'JavaV2/Protocol/Src' > srcDir 'JavaV2/Qryptonite/Src' > srcDir 'JavaV2/Security/Src' > srcDir 'JavaV2/Shipping/Src' > srcDir 'JavaV2/Spring/Src' > srcDir 'JavaV2/Ui/Src' > exclude '**/doc-files/**' > exclude 'makefile' > exclude '**/makefile' > } -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2137) Better UI representation of SourceSets with Multiple Source Root Dirs.
Laszlo Kishalmi created NETBEANS-2137: - Summary: Better UI representation of SourceSets with Multiple Source Root Dirs. Key: NETBEANS-2137 URL: https://issues.apache.org/jira/browse/NETBEANS-2137 Project: NetBeans Issue Type: Improvement Reporter: Laszlo Kishalmi See the following Gradle Sample: sourceSets { main { java { srcDir 'JavaV2/Src' srcDir 'JavaV2/API/Src' srcDir 'JavaV2/Fedex/Src' srcDir 'JavaV2/Library/Src' srcDir 'JavaV2/Products/Src' srcDir 'JavaV2/Protocol/Src' srcDir 'JavaV2/Qryptonite/Src' srcDir 'JavaV2/Security/Src' srcDir 'JavaV2/Shipping/Src' srcDir 'JavaV2/Spring/Src' srcDir 'JavaV2/Ui/Src' exclude '**/doc-files/**' exclude 'makefile' exclude '**/makefile' } -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2135) False positive error messages
[ https://issues.apache.org/jira/browse/NETBEANS-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16771244#comment-16771244 ] Björn Raupach commented on NETBEANS-2135: - Yes, me too. I will talk to the developers. In my case I have to remove the whole plugin block (Maven Compiler Plugin) then the errors are gone. Removing only the execution block does not help. > False positive error messages > - > > Key: NETBEANS-2135 > URL: https://issues.apache.org/jira/browse/NETBEANS-2135 > Project: NetBeans > Issue Type: Bug >Affects Versions: 10.0 > Environment: Apache NetBeans IDE 10.0 (Build > incubator-netbeans-release-380-on-20181217) > OpenJDK Runtime Environment 11.0.2+7 >Reporter: Björn Raupach >Priority: Major > > I am experiencing false positive parser error messages in the Java editor > when working on a Java Maven project. > I can check out the project, compile it and run alle Unit tests, but the > editor lists many errors. > * modules are not supported in -source 8 (use -source 9 or higher to enable > modules) > * package X does not exist > * cannot access java.lang Fatal Error: Unable to find java.lang in classpath > or bootclasspath > * cannot find symbol > It is easy to reproduce. Just check out the GitHub project ThreeTen-Extra and > open the directory with NetBeans. > Here is the link to the original GitHub issue: > https://github.com/ThreeTen/threeten-extra/issues/124 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2135) False positive error messages
[ https://issues.apache.org/jira/browse/NETBEANS-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16771238#comment-16771238 ] Geertjan Wielenga commented on NETBEANS-2135: - Don't know much about this stuff, but I guess you need to specify a release in the base-compile execution, like there is a release in the default-compile execution. > False positive error messages > - > > Key: NETBEANS-2135 > URL: https://issues.apache.org/jira/browse/NETBEANS-2135 > Project: NetBeans > Issue Type: Bug >Affects Versions: 10.0 > Environment: Apache NetBeans IDE 10.0 (Build > incubator-netbeans-release-380-on-20181217) > OpenJDK Runtime Environment 11.0.2+7 >Reporter: Björn Raupach >Priority: Major > > I am experiencing false positive parser error messages in the Java editor > when working on a Java Maven project. > I can check out the project, compile it and run alle Unit tests, but the > editor lists many errors. > * modules are not supported in -source 8 (use -source 9 or higher to enable > modules) > * package X does not exist > * cannot access java.lang Fatal Error: Unable to find java.lang in classpath > or bootclasspath > * cannot find symbol > It is easy to reproduce. Just check out the GitHub project ThreeTen-Extra and > open the directory with NetBeans. > Here is the link to the original GitHub issue: > https://github.com/ThreeTen/threeten-extra/issues/124 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2135) False positive error messages
[ https://issues.apache.org/jira/browse/NETBEANS-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16771234#comment-16771234 ] Björn Raupach commented on NETBEANS-2135: - Thank you very much! I will update the GitHub issue. Maybe the java9plus is not needed. Who knows. > False positive error messages > - > > Key: NETBEANS-2135 > URL: https://issues.apache.org/jira/browse/NETBEANS-2135 > Project: NetBeans > Issue Type: Bug >Affects Versions: 10.0 > Environment: Apache NetBeans IDE 10.0 (Build > incubator-netbeans-release-380-on-20181217) > OpenJDK Runtime Environment 11.0.2+7 >Reporter: Björn Raupach >Priority: Major > > I am experiencing false positive parser error messages in the Java editor > when working on a Java Maven project. > I can check out the project, compile it and run alle Unit tests, but the > editor lists many errors. > * modules are not supported in -source 8 (use -source 9 or higher to enable > modules) > * package X does not exist > * cannot access java.lang Fatal Error: Unable to find java.lang in classpath > or bootclasspath > * cannot find symbol > It is easy to reproduce. Just check out the GitHub project ThreeTen-Extra and > open the directory with NetBeans. > Here is the link to the original GitHub issue: > https://github.com/ThreeTen/threeten-extra/issues/124 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2135) False positive error messages
[ https://issues.apache.org/jira/browse/NETBEANS-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16771233#comment-16771233 ] Geertjan Wielenga commented on NETBEANS-2135: - If I remove this within the java9plus profile, the problem is gone, i.e., this is the cause of the problem: base-compile compile module-info.java > False positive error messages > - > > Key: NETBEANS-2135 > URL: https://issues.apache.org/jira/browse/NETBEANS-2135 > Project: NetBeans > Issue Type: Bug >Affects Versions: 10.0 > Environment: Apache NetBeans IDE 10.0 (Build > incubator-netbeans-release-380-on-20181217) > OpenJDK Runtime Environment 11.0.2+7 >Reporter: Björn Raupach >Priority: Major > > I am experiencing false positive parser error messages in the Java editor > when working on a Java Maven project. > I can check out the project, compile it and run alle Unit tests, but the > editor lists many errors. > * modules are not supported in -source 8 (use -source 9 or higher to enable > modules) > * package X does not exist > * cannot access java.lang Fatal Error: Unable to find java.lang in classpath > or bootclasspath > * cannot find symbol > It is easy to reproduce. Just check out the GitHub project ThreeTen-Extra and > open the directory with NetBeans. > Here is the link to the original GitHub issue: > https://github.com/ThreeTen/threeten-extra/issues/124 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2135) False positive error messages
[ https://issues.apache.org/jira/browse/NETBEANS-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16771231#comment-16771231 ] Geertjan Wielenga commented on NETBEANS-2135: - Even more specifically, the problem is with java9plus profile. Delete that and the problem is gone, i.e., somewhere in there is something causing the problem. > False positive error messages > - > > Key: NETBEANS-2135 > URL: https://issues.apache.org/jira/browse/NETBEANS-2135 > Project: NetBeans > Issue Type: Bug >Affects Versions: 10.0 > Environment: Apache NetBeans IDE 10.0 (Build > incubator-netbeans-release-380-on-20181217) > OpenJDK Runtime Environment 11.0.2+7 >Reporter: Björn Raupach >Priority: Major > > I am experiencing false positive parser error messages in the Java editor > when working on a Java Maven project. > I can check out the project, compile it and run alle Unit tests, but the > editor lists many errors. > * modules are not supported in -source 8 (use -source 9 or higher to enable > modules) > * package X does not exist > * cannot access java.lang Fatal Error: Unable to find java.lang in classpath > or bootclasspath > * cannot find symbol > It is easy to reproduce. Just check out the GitHub project ThreeTen-Extra and > open the directory with NetBeans. > Here is the link to the original GitHub issue: > https://github.com/ThreeTen/threeten-extra/issues/124 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2135) False positive error messages
[ https://issues.apache.org/jira/browse/NETBEANS-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16771228#comment-16771228 ] Björn Raupach commented on NETBEANS-2135: - Hi [~GeertjanWielenga] , thank you for your time. In the pom.xml of ThreeTen-Extra I changed the following lines: {code:java} 1.8 1.8 1.8{code} to {code:java} 10 10{code} The Maven Compiler Plugin has the version 3.8.0 set. No need to change this property. Unfortunately, this has no effect in Apache NetBeans 10. I am trying to finish my NetCAT 11 assignment this weekend. Maybe this is fixed in NetBeans 11? If it is, I will close this ticket. > False positive error messages > - > > Key: NETBEANS-2135 > URL: https://issues.apache.org/jira/browse/NETBEANS-2135 > Project: NetBeans > Issue Type: Bug >Affects Versions: 10.0 > Environment: Apache NetBeans IDE 10.0 (Build > incubator-netbeans-release-380-on-20181217) > OpenJDK Runtime Environment 11.0.2+7 >Reporter: Björn Raupach >Priority: Major > > I am experiencing false positive parser error messages in the Java editor > when working on a Java Maven project. > I can check out the project, compile it and run alle Unit tests, but the > editor lists many errors. > * modules are not supported in -source 8 (use -source 9 or higher to enable > modules) > * package X does not exist > * cannot access java.lang Fatal Error: Unable to find java.lang in classpath > or bootclasspath > * cannot find symbol > It is easy to reproduce. Just check out the GitHub project ThreeTen-Extra and > open the directory with NetBeans. > Here is the link to the original GitHub issue: > https://github.com/ThreeTen/threeten-extra/issues/124 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2135) False positive error messages
[ https://issues.apache.org/jira/browse/NETBEANS-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16771227#comment-16771227 ] Geertjan Wielenga commented on NETBEANS-2135: - It's got something to do with the profiles section. Remove that and the problems disappear, i.e., somewhere in there NetBeans (i.e., Maven, since NetBeans is simply a GUI on top of Maven) is not dealing correctly with the profiles section and that breaks the subsequent part, i.e., the properties section. > False positive error messages > - > > Key: NETBEANS-2135 > URL: https://issues.apache.org/jira/browse/NETBEANS-2135 > Project: NetBeans > Issue Type: Bug >Affects Versions: 10.0 > Environment: Apache NetBeans IDE 10.0 (Build > incubator-netbeans-release-380-on-20181217) > OpenJDK Runtime Environment 11.0.2+7 >Reporter: Björn Raupach >Priority: Major > > I am experiencing false positive parser error messages in the Java editor > when working on a Java Maven project. > I can check out the project, compile it and run alle Unit tests, but the > editor lists many errors. > * modules are not supported in -source 8 (use -source 9 or higher to enable > modules) > * package X does not exist > * cannot access java.lang Fatal Error: Unable to find java.lang in classpath > or bootclasspath > * cannot find symbol > It is easy to reproduce. Just check out the GitHub project ThreeTen-Extra and > open the directory with NetBeans. > Here is the link to the original GitHub issue: > https://github.com/ThreeTen/threeten-extra/issues/124 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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] [Comment Edited] (NETBEANS-2135) False positive error messages
[ https://issues.apache.org/jira/browse/NETBEANS-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16771218#comment-16771218 ] Geertjan Wielenga edited comment on NETBEANS-2135 at 2/18/19 4:48 PM: -- Been looking into this, something about the POM, that's for sure. It should work, just not sure why. When I use the latest builds of Apache NetBeans 11 with JDK 12 rc, and create a new Maven project, with this POM and a module-info.java, everything is fine. Maybe try to set the below up yourself and confirm (in 10 is also fine with JDK 11 is also fine, then put 11 below where I have 12) and I'll continue to investigate. {{ http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> 4.0.0 com.mycompany Test123 1.0-SNAPSHOT jar org.apache.maven.plugins maven-compiler-plugin 3.8.0 UTF-8 12 12 }} was (Author: geertjanwielenga): Been looking into this, something about the POM, that's for sure. It should work, just not sure why. When I use the latest builds of Apache NetBeans 11 with JDK 12 rc, and create a new Maven project, with this POM and a module-info.java, everything is fine. Maybe try to set the below up yourself and confirm (in 10 is also fine with JDK 11 is also fine, then put 11 below where I have 12) and I'll continue to investigate. http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> 4.0.0 com.mycompany Test123 1.0-SNAPSHOT jar org.apache.maven.plugins maven-compiler-plugin 3.8.0 UTF-8 12 12 > False positive error messages > - > > Key: NETBEANS-2135 > URL: https://issues.apache.org/jira/browse/NETBEANS-2135 > Project: NetBeans > Issue Type: Bug >Affects Versions: 10.0 > Environment: Apache NetBeans IDE 10.0 (Build > incubator-netbeans-release-380-on-20181217) > OpenJDK Runtime Environment 11.0.2+7 >Reporter: Björn Raupach >Priority: Major > > I am experiencing false positive parser error messages in the Java editor > when working on a Java Maven project. > I can check out the project, compile it and run alle Unit tests, but the > editor lists many errors. > * modules are not supported in -source 8 (use -source 9 or higher to enable > modules) > * package X does not exist > * cannot access java.lang Fatal Error: Unable to find java.lang in classpath > or bootclasspath > * cannot find symbol > It is easy to reproduce. Just check out the GitHub project ThreeTen-Extra and > open the directory with NetBeans. > Here is the link to the original GitHub issue: > https://github.com/ThreeTen/threeten-extra/issues/124 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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] [Comment Edited] (NETBEANS-2135) False positive error messages
[ https://issues.apache.org/jira/browse/NETBEANS-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16771218#comment-16771218 ] Geertjan Wielenga edited comment on NETBEANS-2135 at 2/18/19 4:48 PM: -- Been looking into this, something about the POM, that's for sure. It should work, just not sure why. When I use the latest builds of Apache NetBeans 11 with JDK 12 rc, and create a new Maven project, with this POM and a module-info.java, everything is fine. Maybe try to set the below up yourself and confirm (in 10 is also fine with JDK 11 is also fine, then put 11 below where I have 12) and I'll continue to investigate. http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> 4.0.0 com.mycompany Test123 1.0-SNAPSHOT jar org.apache.maven.plugins maven-compiler-plugin 3.8.0 UTF-8 12 12 was (Author: geertjanwielenga): Been looking into this, something about the POM, that's for sure. It should work, just not sure why. When I use the latest builds of Apache NetBeans 11 with JDK 12 rc, and create a new Maven project, with this POM and a module-info.java, everything is fine. Maybe try to set the below up yourself and confirm (in 10 is also fine with JDK 11 is also fine, then put 11 below where I have 12) and I'll continue to investigate. {{ http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> 4.0.0 com.mycompany Test123 1.0-SNAPSHOT jar org.apache.maven.plugins maven-compiler-plugin 3.8.0 UTF-8 12 12 }} > False positive error messages > - > > Key: NETBEANS-2135 > URL: https://issues.apache.org/jira/browse/NETBEANS-2135 > Project: NetBeans > Issue Type: Bug >Affects Versions: 10.0 > Environment: Apache NetBeans IDE 10.0 (Build > incubator-netbeans-release-380-on-20181217) > OpenJDK Runtime Environment 11.0.2+7 >Reporter: Björn Raupach >Priority: Major > > I am experiencing false positive parser error messages in the Java editor > when working on a Java Maven project. > I can check out the project, compile it and run alle Unit tests, but the > editor lists many errors. > * modules are not supported in -source 8 (use -source 9 or higher to enable > modules) > * package X does not exist > * cannot access java.lang Fatal Error: Unable to find java.lang in classpath > or bootclasspath > * cannot find symbol > It is easy to reproduce. Just check out the GitHub project ThreeTen-Extra and > open the directory with NetBeans. > Here is the link to the original GitHub issue: > https://github.com/ThreeTen/threeten-extra/issues/124 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2135) False positive error messages
[ https://issues.apache.org/jira/browse/NETBEANS-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16771218#comment-16771218 ] Geertjan Wielenga commented on NETBEANS-2135: - Been looking into this, something about the POM, that's for sure. It should work, just not sure why. When I use the latest builds of Apache NetBeans 11 with JDK 12 rc, and create a new Maven project, with this POM and a module-info.java, everything is fine. Maybe try to set the below up yourself and confirm (in 10 is also fine with JDK 11 is also fine, then put 11 below where I have 12) and I'll continue to investigate. http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;> 4.0.0 com.mycompany Test123 1.0-SNAPSHOT jar org.apache.maven.plugins maven-compiler-plugin 3.8.0 UTF-8 12 12 > False positive error messages > - > > Key: NETBEANS-2135 > URL: https://issues.apache.org/jira/browse/NETBEANS-2135 > Project: NetBeans > Issue Type: Bug >Affects Versions: 10.0 > Environment: Apache NetBeans IDE 10.0 (Build > incubator-netbeans-release-380-on-20181217) > OpenJDK Runtime Environment 11.0.2+7 >Reporter: Björn Raupach >Priority: Major > > I am experiencing false positive parser error messages in the Java editor > when working on a Java Maven project. > I can check out the project, compile it and run alle Unit tests, but the > editor lists many errors. > * modules are not supported in -source 8 (use -source 9 or higher to enable > modules) > * package X does not exist > * cannot access java.lang Fatal Error: Unable to find java.lang in classpath > or bootclasspath > * cannot find symbol > It is easy to reproduce. Just check out the GitHub project ThreeTen-Extra and > open the directory with NetBeans. > Here is the link to the original GitHub issue: > https://github.com/ThreeTen/threeten-extra/issues/124 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2135) False positive error messages
Björn Raupach created NETBEANS-2135: --- Summary: False positive error messages Key: NETBEANS-2135 URL: https://issues.apache.org/jira/browse/NETBEANS-2135 Project: NetBeans Issue Type: Bug Affects Versions: 10.0 Environment: Apache NetBeans IDE 10.0 (Build incubator-netbeans-release-380-on-20181217) OpenJDK Runtime Environment 11.0.2+7 Reporter: Björn Raupach I am experiencing false positive parser error messages in the Java editor when working on a Java Maven project. I can check out the project, compile it and run alle Unit tests, but the editor lists many errors. * modules are not supported in -source 8 (use -source 9 or higher to enable modules) * package X does not exist * cannot access java.lang Fatal Error: Unable to find java.lang in classpath or bootclasspath * cannot find symbol It is easy to reproduce. Just check out the GitHub project ThreeTen-Extra and open the directory with NetBeans. Here is the link to the original GitHub issue: https://github.com/ThreeTen/threeten-extra/issues/124 -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2134) ClassCastException calling "Implement all abstract methods"
[ https://issues.apache.org/jira/browse/NETBEANS-2134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aldo Brucale updated NETBEANS-2134: --- Description: Invoking the "Implement all abstract methods" hint action produces a ClassCastException when the type of the parameters of the methods to implement is not in the classpath. Here is the stack trace: {noformat} java.lang.ClassCastException: class com.sun.tools.javac.code.Type$ClassType cannot be cast to class com.sun.tools.javac.code.Type$ErrorType (com.sun.tools.javac.code.Type$ClassType and com.sun.tools.javac.code.Type$ErrorType are in unnamed module of loader org.netbeans.StandardModule$OneModuleClassLoader @2fd0241) at org.netbeans.modules.java.source.builder.TreeFactory.Type(TreeFactory.java:797) at org.netbeans.api.java.source.TreeMaker.Type(TreeMaker.java:1083) at org.netbeans.api.java.source.GeneratorUtilities.resolveWildcard(GeneratorUtilities.java:1784) at org.netbeans.api.java.source.GeneratorUtilities.createMethod(GeneratorUtilities.java:818) at org.netbeans.api.java.source.GeneratorUtilities.createMethod(GeneratorUtilities.java:1693) at org.netbeans.api.java.source.GeneratorUtilities.createAbstractMethodImplementation(GeneratorUtilities.java:721) at org.netbeans.api.java.source.GeneratorUtilities.createAbstractMethodImplementations(GeneratorUtilities.java:705) at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods.generateAllAbstractMethodImplementations(ImplementAllAbstractMethods.java:587) at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementFixBase.generateImplementation(ImplementAllAbstractMethods.java:402) at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementAbstractMethodsFix.executeRound(ImplementAllAbstractMethods.java:548) at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementFixBase.run(ImplementAllAbstractMethods.java:363) at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementFixBase.run(ImplementAllAbstractMethods.java:285) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:672) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:662) at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:501) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178) at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153) at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335) at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118) at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81) at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:451) at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:422) at org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:683) at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementFixBase.implement(ImplementAllAbstractMethods.java:341) [catch] at org.netbeans.modules.editor.hints.HintsUI$1.run(HintsUI.java:810) 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} was: Invoking the "Implement all abstract methods" hint action produces this exception: {noformat} java.lang.ClassCastException: class com.sun.tools.javac.code.Type$ClassType cannot be cast to class com.sun.tools.javac.code.Type$ErrorType (com.sun.tools.javac.code.Type$ClassType and com.sun.tools.javac.code.Type$ErrorType are in unnamed module of loader org.netbeans.StandardModule$OneModuleClassLoader @2fd0241) at org.netbeans.modules.java.source.builder.TreeFactory.Type(TreeFactory.java:797) at org.netbeans.api.java.source.TreeMaker.Type(TreeMaker.java:1083) at org.netbeans.api.java.source.GeneratorUtilities.resolveWildcard(GeneratorUtilities.java:1784) at org.netbeans.api.java.source.GeneratorUtilities.createMethod(GeneratorUtilities.java:818) at
[jira] [Updated] (NETBEANS-2134) ClassCastException calling "Implement all abstract methods"
[ https://issues.apache.org/jira/browse/NETBEANS-2134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aldo Brucale updated NETBEANS-2134: --- Environment: Ubuntu 18.04 Netbeans is running on OpenJDK 11.0.1+13-Ubuntu-3ubuntu118.04ppa1 The Java platform for the project is OpenJDK 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12 > ClassCastException calling "Implement all abstract methods" > --- > > Key: NETBEANS-2134 > URL: https://issues.apache.org/jira/browse/NETBEANS-2134 > Project: NetBeans > Issue Type: Bug > Components: editor - Refactoring, java - Refactoring >Affects Versions: 10.0 > Environment: Ubuntu 18.04 > Netbeans is running on OpenJDK 11.0.1+13-Ubuntu-3ubuntu118.04ppa1 > The Java platform for the project is OpenJDK > 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12 >Reporter: Aldo Brucale >Priority: Major > > Invoking the "Implement all abstract methods" hint action produces this > exception: > {noformat} > java.lang.ClassCastException: class com.sun.tools.javac.code.Type$ClassType > cannot be cast to class com.sun.tools.javac.code.Type$ErrorType > (com.sun.tools.javac.code.Type$ClassType and > com.sun.tools.javac.code.Type$ErrorType are in unnamed module of loader > org.netbeans.StandardModule$OneModuleClassLoader @2fd0241) > at > org.netbeans.modules.java.source.builder.TreeFactory.Type(TreeFactory.java:797) > at org.netbeans.api.java.source.TreeMaker.Type(TreeMaker.java:1083) > at > org.netbeans.api.java.source.GeneratorUtilities.resolveWildcard(GeneratorUtilities.java:1784) > at > org.netbeans.api.java.source.GeneratorUtilities.createMethod(GeneratorUtilities.java:818) > at > org.netbeans.api.java.source.GeneratorUtilities.createMethod(GeneratorUtilities.java:1693) > at > org.netbeans.api.java.source.GeneratorUtilities.createAbstractMethodImplementation(GeneratorUtilities.java:721) > at > org.netbeans.api.java.source.GeneratorUtilities.createAbstractMethodImplementations(GeneratorUtilities.java:705) > at > org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods.generateAllAbstractMethodImplementations(ImplementAllAbstractMethods.java:587) > at > org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementFixBase.generateImplementation(ImplementAllAbstractMethods.java:402) > at > org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementAbstractMethodsFix.executeRound(ImplementAllAbstractMethods.java:548) > at > org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementFixBase.run(ImplementAllAbstractMethods.java:363) > at > org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementFixBase.run(ImplementAllAbstractMethods.java:285) > at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:672) > at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:662) > at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:501) > at > org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586) > at > org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130) > at > org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114) > at > org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181) > at > org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178) > at > org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153) > at > org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335) > at > org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118) > at > org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67) > at > org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178) > at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81) > at > org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:451) > at > org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:422) > at > org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:683) > at > org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementFixBase.implement(ImplementAllAbstractMethods.java:341) > [catch] at org.netbeans.modules.editor.hints.HintsUI$1.run(HintsUI.java:810) > 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} > -- This
[jira] [Created] (NETBEANS-2134) ClassCastException calling "Implement all abstract methods"
Aldo Brucale created NETBEANS-2134: -- Summary: ClassCastException calling "Implement all abstract methods" Key: NETBEANS-2134 URL: https://issues.apache.org/jira/browse/NETBEANS-2134 Project: NetBeans Issue Type: Bug Components: editor - Refactoring, java - Refactoring Affects Versions: 10.0 Reporter: Aldo Brucale Invoking the "Implement all abstract methods" hint action produces this exception: {noformat} java.lang.ClassCastException: class com.sun.tools.javac.code.Type$ClassType cannot be cast to class com.sun.tools.javac.code.Type$ErrorType (com.sun.tools.javac.code.Type$ClassType and com.sun.tools.javac.code.Type$ErrorType are in unnamed module of loader org.netbeans.StandardModule$OneModuleClassLoader @2fd0241) at org.netbeans.modules.java.source.builder.TreeFactory.Type(TreeFactory.java:797) at org.netbeans.api.java.source.TreeMaker.Type(TreeMaker.java:1083) at org.netbeans.api.java.source.GeneratorUtilities.resolveWildcard(GeneratorUtilities.java:1784) at org.netbeans.api.java.source.GeneratorUtilities.createMethod(GeneratorUtilities.java:818) at org.netbeans.api.java.source.GeneratorUtilities.createMethod(GeneratorUtilities.java:1693) at org.netbeans.api.java.source.GeneratorUtilities.createAbstractMethodImplementation(GeneratorUtilities.java:721) at org.netbeans.api.java.source.GeneratorUtilities.createAbstractMethodImplementations(GeneratorUtilities.java:705) at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods.generateAllAbstractMethodImplementations(ImplementAllAbstractMethods.java:587) at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementFixBase.generateImplementation(ImplementAllAbstractMethods.java:402) at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementAbstractMethodsFix.executeRound(ImplementAllAbstractMethods.java:548) at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementFixBase.run(ImplementAllAbstractMethods.java:363) at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementFixBase.run(ImplementAllAbstractMethods.java:285) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:672) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:662) at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:501) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178) at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153) at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335) at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118) at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81) at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:451) at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:422) at org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:683) at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementFixBase.implement(ImplementAllAbstractMethods.java:341) [catch] at org.netbeans.modules.editor.hints.HintsUI$1.run(HintsUI.java:810) 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} -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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
[incubator-netbeans-html4j] branch master updated: Verify the debugger can be initialized
This is an automated email from the ASF dual-hosted git repository. jtulach pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-html4j.git The following commit(s) were added to refs/heads/master by this push: new 5e0890e Verify the debugger can be initialized 5e0890e is described below commit 5e0890e9d00ba3eefea8fc4f5f3cba919ae6055e Author: Jaroslav Tulach AuthorDate: Sun Feb 17 21:17:48 2019 +0100 Verify the debugger can be initialized --- .../main/java/org/netbeans/html/boot/fx/Dbgr.java | 9 +++- .../java/org/netbeans/html/boot/fx/DbgrTest.java | 55 ++ 2 files changed, 63 insertions(+), 1 deletion(-) diff --git a/boot-fx/src/main/java/org/netbeans/html/boot/fx/Dbgr.java b/boot-fx/src/main/java/org/netbeans/html/boot/fx/Dbgr.java index 423f5f2..7cc3d85 100644 --- a/boot-fx/src/main/java/org/netbeans/html/boot/fx/Dbgr.java +++ b/boot-fx/src/main/java/org/netbeans/html/boot/fx/Dbgr.java @@ -36,7 +36,14 @@ final class Dbgr { Object d; Method m; try { -d = eng.getClass().getMethod("impl_getDebugger").invoke(eng); // NOI18N +Method getDebugger; +try { +getDebugger = eng.getClass().getMethod("impl_getDebugger"); // NOI18N +} catch (NoSuchMethodException ex) { +getDebugger = eng.getClass().getDeclaredMethod("getDebugger"); // NOI18N +getDebugger.setAccessible(true); +} +d = getDebugger.invoke(eng); Class debugger = eng.getClass().getClassLoader().loadClass("com.sun.javafx.scene.web.Debugger"); // NOI18N debugger.getMethod("setEnabled", boolean.class).invoke(d, true); // NOI18N debugger.getMethod("setMessageCallback", Callback.class).invoke(d, callback); // NOI18N diff --git a/boot-fx/src/test/java/org/netbeans/html/boot/fx/DbgrTest.java b/boot-fx/src/test/java/org/netbeans/html/boot/fx/DbgrTest.java new file mode 100644 index 000..024f039 --- /dev/null +++ b/boot-fx/src/test/java/org/netbeans/html/boot/fx/DbgrTest.java @@ -0,0 +1,55 @@ +/** + * 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.html.boot.fx; + +import java.util.concurrent.CountDownLatch; +import javafx.application.Platform; +import javafx.scene.web.WebEngine; +import javafx.scene.web.WebView; +import javafx.util.Callback; +import static org.testng.Assert.assertNotNull; +import org.testng.annotations.Test; + +public class DbgrTest implements Callback { + +public DbgrTest() { +} + +@Test +public void initializeDebuggerForWebView() throws Exception { +Dbgr[] instance = { null }; +CountDownLatch cdl = new CountDownLatch(1); +Platform.runLater(() -> { +WebView wv = new WebView(); +WebEngine engine = wv.getEngine(); +instance[0] = new Dbgr(engine, this); +cdl.countDown(); +}); + +cdl.await(); +assertNotNull(instance[0], "Instance of Dbgr class created"); +assertNotNull(instance[0].dbg, "Debugger initialized"); +assertNotNull(instance[0].sendMsg, "Send method initialized"); +} + +@Override +public Void call(String p) { +return null; +} +} - 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-2133) Netbeans overwrite a newer file on a remove server
[ https://issues.apache.org/jira/browse/NETBEANS-2133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Kowal updated NETBEANS-2133: Attachment: other ide notify remote changes settings.png > Netbeans overwrite a newer file on a remove server > --- > > Key: NETBEANS-2133 > URL: https://issues.apache.org/jira/browse/NETBEANS-2133 > Project: NetBeans > Issue Type: Improvement >Affects Versions: 10.0 >Reporter: Jan Kowal >Priority: Major > Labels: PHP, overwriteExisting, remote, save > Attachments: other ide notify remote changes settings.png > > > In PHP project created form remote server: {{File > New Project > PHP > PHP > Application from Remote Server on save file/on run remote files are > overwritten without any warning.}} > The other IDE I used, shows a warning when save file to server and the remote > file is changed. > This can be a useful and desirable function. > -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2133) Netbeans overwrite a newer file on a remove server
[ https://issues.apache.org/jira/browse/NETBEANS-2133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Kowal updated NETBEANS-2133: Attachment: (was: notify remote changes.png) > Netbeans overwrite a newer file on a remove server > --- > > Key: NETBEANS-2133 > URL: https://issues.apache.org/jira/browse/NETBEANS-2133 > Project: NetBeans > Issue Type: Improvement >Affects Versions: 10.0 >Reporter: Jan Kowal >Priority: Major > Labels: PHP, overwriteExisting, remote, save > Attachments: other ide notify remote changes settings.png > > > In PHP project created form remote server: {{File > New Project > PHP > PHP > Application from Remote Server on save file/on run remote files are > overwritten without any warning.}} > The other IDE I used, shows a warning when save file to server and the remote > file is changed. > This can be a useful and desirable function. > -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2132) Unsigned artifact when enabling Java support
Jaroslav Tulach created NETBEANS-2132: - Summary: Unsigned artifact when enabling Java support Key: NETBEANS-2132 URL: https://issues.apache.org/jira/browse/NETBEANS-2132 Project: NetBeans Issue Type: Bug Components: platform - HTML4J Affects Versions: 11.0 Reporter: Jaroslav Tulach Assignee: Laszlo Kishalmi Running NetBeans 11 VC1 on JDK11 with an empty directory. Trying to create "Java with Maven/Java Frontend App" - I am asked to "download & activate" or just "activate". I select "download & activate". Download works OK, but then I am presented with an ugly warning: _Enable unsigned components?_ That is scary, can we get rid of that? As far as I know the NBMs are created during NetBeans build - {{nb/updatecenters/build.xml b/nb/updatecenters/build.xml}} - I just don't know how they should be signed. {code:java} {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2130) Add support to download/install/register GlassFish 5.1
[ https://issues.apache.org/jira/browse/NETBEANS-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pete Whelpton updated NETBEANS-2130: Description: Eclipse Foundation have released GlassFish 5.1. Netbeans should add support to download, install and register, as per previous versions of GlassFish. Based on my work on GF 4.1.2 & GF 5.0, the steps need should be something like: * Update Glassfish Tooling module so that NB will recognise GF 5.1 as a distinct version (rather than reporting an instance of GF 5.1 as GF 5.0) Modify *enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/data/GlassFishVersion.java* Add value for GF 5.1 to bottom of Enum values (below GF5.0 entry): {code:java} /** GlassFish 5. */ GF_5 ((short) 5, (short) 0, (short) 0, (short) 0, GlassFishVersion.GF_5_STR); /** GlassFish 5.1 */ GF_5_1 ((short) 5, (short) 1, (short) 0, (short) 0, GlassFishVersion.GF_5_1_STR); {code} Add a constant for the string value of GF 5.1 (below GF 5.0 entry) {code:java} /** A String representation of GF_5 value. */ static final String GF_5_STR = "5"; /** Additional String representations of GF_5 value. */ static final String GF_5_STR_NEXT[] = {"5.0", "5.0.0", "5.0.0.0"}; /** A String representation of GF_5_1 value. */ static final String GF_5_1_STR = "5.1"; /** Additional String representations of GF_5_1 value. */ static final String GF_5_1_STR_NEXT[] = {"5.1.0", "5.1.0.0"}; {code} Add the above values to the Map (below GF 5.0 entry) : {code:java} initStringValuesMapFromArray(GF_5, GF_5_STR_NEXT); initStringValuesMapFromArray(GF_5_1, GF_5_1_STR_NEXT); {code} * Update Glassfish Common module. Add new string value to Bundle Modify *enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/Bundle.properties* to add a string value for GF 5.1 below GF 5.0 {code:java} STR_50_SERVER_NAME=GlassFish Server 5.0 STR_51_SERVER_NAME=GlassFish Server 5.1 {code} * Update Server Details so NB knows where to download GF 5.1 from Modify *enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/ServerDetails.java* and add an entry for GF5.1 below GF5.0 {code:java} /** * details for an instance of GlassFish Server 5 */ GLASSFISH_SERVER_5_0(NbBundle.getMessage(ServerDetails.class, "STR_50_SERVER_NAME", new Object[]{}), // NOI18N "deployer:gfv3ee6wc", // NOI18N 500, "https://download.oracle.com/glassfish/5.0/release/glassfish-5.0.zip;, // NOI18N "https://download.oracle.com/glassfish/5.0/release/glassfish-5.0.zip; // NOI18N ); /** * details for an instance of GlassFish Server 5.1 */ GLASSFISH_SERVER_5_1(NbBundle.getMessage(ServerDetails.class, "STR_51_SERVER_NAME", new Object[]{}), // NOI18N "deployer:gfv3ee6wc", // NOI18N 510, "https://www.eclipse.org/downloads/download.php?file=/glassfish/glassfish-5.1.0.zip_id=492;, // NOI18N "https://www.eclipse.org/downloads/download.php?file=/glassfish/glassfish-5.1.0.zip_id=492; // NOI18N ); {code} Add GF 5.1 to the top of the Server Details iterator (the "top half" should be all supported GF versions, the bottom half is those that can be installed via NB UI - OPTIONALLY remove GF 3.1.2.2 from the bottom half): {code:java} return new ServerWizardIterator(new ServerDetails[]{ GLASSFISH_SERVER_5_1, GLASSFISH_SERVER_5_0, GLASSFISH_SERVER_4_1_2, GLASSFISH_SERVER_4_1_1, GLASSFISH_SERVER_4_1, GLASSFISH_SERVER_4_0_1, GLASSFISH_SERVER_4_0, GLASSFISH_SERVER_3_1_2_2, GLASSFISH_SERVER_3_1_2, GLASSFISH_SERVER_3_1_1, GLASSFISH_SERVER_3_1, GLASSFISH_SERVER_3_0_1, GLASSFISH_SERVER_3,}, new ServerDetails[]{ GLASSFISH_SERVER_5_1, GLASSFISH_SERVER_5_0, GLASSFISH_SERVER_4_1_2, GLASSFISH_SERVER_4_1_1, GLASSFISH_SERVER_4_1, GLASSFISH_SERVER_4_0, GLASSFISH_SERVER_3_1_2_2}); } {code} Add GF5.1 version to list of recognised installed GF versions (below GF 5.0): {code:java} case GF_5: return GLASSFISH_SERVER_5_0.getVersion(); case GF_5_1: return GLASSFISH_SERVER_5_1.getVersion(); {code} The other thing that would need doing would be pointing to the Ecilpse Licence, rather than the Oracle one. I was thinking of something like: * Adding the licence location for each GF version to the enum in ServerDetails * Moving the checkbox and link to the licence to the dialog box where the user chooses the glassfish version * Updating the licence link based on which version of GF is selected in the dropdown by querying the ServerDetails was: Eclipse Foundation have released GlassFish 5.1. Netbeans should add support to download, install and register, as per previous versions of GlassFish. Based on my work on GF 4.1.2 & GF 5.0, the steps need should be something like: * Update Glassfish Tooling module so that NB will recognise GF 5.1 as a distinct version (rather than reporting an instance of GF 5.1 as
[jira] [Commented] (NETBEANS-2132) Unsigned artifact when enabling Java support
[ https://issues.apache.org/jira/browse/NETBEANS-2132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16771003#comment-16771003 ] Jaroslav Tulach commented on NETBEANS-2132: --- Laszlo, you are generating NBMs as part of the release build. You have to know how to sign them. Could you modify the above script to also sign the NBMs? Thanks. > Unsigned artifact when enabling Java support > > > Key: NETBEANS-2132 > URL: https://issues.apache.org/jira/browse/NETBEANS-2132 > Project: NetBeans > Issue Type: Bug > Components: platform - HTML4J >Affects Versions: 11.0 >Reporter: Jaroslav Tulach >Assignee: Laszlo Kishalmi >Priority: Major > > Running NetBeans 11 VC1 on JDK11 with an empty directory. Trying to create > "Java with Maven/Java Frontend App" - I am asked to "download & activate" or > just "activate". I select "download & activate". > Download works OK, but then I am presented with an ugly warning: _Enable > unsigned components?_ That is scary, can we get rid of that? > As far as I know the NBMs are created during NetBeans build - > {{nb/updatecenters/build.xml b/nb/updatecenters/build.xml}} - I just don't > know how they should be signed. > {code:java} > > > > > > classname="org.netbeans.nbbuild.MakeUpdateDesc" > classpath="${nbantext.jar}"/> > location="build/classes/org/netbeans/modules/updatecenters/resources"/> > > distbase="." uselicenseurl="true"> > > > > > > > > > > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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] [Assigned] (NETBEANS-2131) CCE: JDK11, Goto type 'WebView'
[ https://issues.apache.org/jira/browse/NETBEANS-2131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jaroslav Tulach reassigned NETBEANS-2131: - Assignee: Reema Taneja > CCE: JDK11, Goto type 'WebView' > --- > > Key: NETBEANS-2131 > URL: https://issues.apache.org/jira/browse/NETBEANS-2131 > Project: NetBeans > Issue Type: Bug > Components: java - Navigation >Reporter: Jaroslav Tulach >Assignee: Reema Taneja >Priority: Major > > Running the NetBeans 11 VC1 on JDK11 with an empty dir. Created "Java with > Maven/Java Frontend App". Then I tried Ctrl-O and jump to `WebView`. Nothing > happens and this is the text on the console: > > {code:java} > Even though the source level of is set to: 11, java.util.zip.CRC32C cannot > be found on the system module path: > Changing source level to 1.8 > SEVERE [global] > java.lang.ClassCastException: class com.sun.tools.javac.jvm.ClassReader$1 > cannot be cast to class com.sun.tools.javac.code.Type$ErrorType > (com.sun.tools.javac.jvm.ClassReader$1 and > com.sun.tools.javac.code.Type$ErrorType are in unnamed module of loader > org.netbeans.StandardModule$OneModuleClassLoader @49d43819) > at > org.netbeans.modules.java.source.builder.TreeFactory.Type(TreeFactory.java:858) > at org.netbeans.api.java.source.TreeMaker.Type(TreeMaker.java:1107) > at > org.netbeans.modules.java.classfile.CodeGenerator$TreeBuilder.visitVariable(CodeGenerator.java:520) > at > org.netbeans.modules.java.classfile.CodeGenerator$TreeBuilder.visitVariable(CodeGenerator.java:285) > at com.sun.tools.javac.code.Symbol$VarSymbol.accept(Symbol.java:1606) > at > javax.lang.model.util.AbstractElementVisitor6.visit(AbstractElementVisitor6.java:106) > at > org.netbeans.modules.java.classfile.CodeGenerator$TreeBuilder.visitType(CodeGenerator.java:367) > at > org.netbeans.modules.java.classfile.CodeGenerator$TreeBuilder.visitType(CodeGenerator.java:285) > at > com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:1473) > at > javax.lang.model.util.AbstractElementVisitor6.visit(AbstractElementVisitor6.java:106) > at > org.netbeans.modules.java.classfile.CodeGenerator$TreeBuilder.visitType(CodeGenerator.java:367) > at > org.netbeans.modules.java.classfile.CodeGenerator$TreeBuilder.visitType(CodeGenerator.java:285) > at > com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:1473) > at > javax.lang.model.util.AbstractElementVisitor6.visit(AbstractElementVisitor6.java:106) > at > org.netbeans.modules.java.classfile.CodeGenerator.generateCode(CodeGenerator.java:275) > at > org.netbeans.modules.java.classfile.CodeGenerator$1.run(CodeGenerator.java:232) > at > org.netbeans.modules.java.classfile.CodeGenerator$1.run(CodeGenerator.java:152) > at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:672) > at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:662) > at > org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:501) > at > org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586) > at > org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130) > at > org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114) > at > org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181) > at > org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178) > at > org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153) > at > org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335) > at > org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118) > at > org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67) > at > org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178) > at > org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81) > at > org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:451) > at > org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:422) > at > org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:683) > at > org.netbeans.modules.java.classfile.CodeGenerator.generateCode(CodeGenerator.java:152) > at > org.netbeans.modules.java.classfile.BinaryElementOpenImpl.open(BinaryElementOpenImpl.java:44) > at >
[jira] [Updated] (NETBEANS-2130) Add support to download/install/register GlassFish 5.1
[ https://issues.apache.org/jira/browse/NETBEANS-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pete Whelpton updated NETBEANS-2130: Description: Eclipse Foundation have released GlassFish 5.1. Netbeans should add support to download, install and register, as per previous versions of GlassFish. Based on my work on GF 4.1.2 & GF 5.0, the steps need should be something like: * Update Glassfish Tooling module so that NB will recognise GF 5.1 as a distinct version (rather than reporting an instance of GF 5.1 as GF 5.0) Modify *enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/data/GlassFishVersion.java* Add value for GF 5.1 to bottom of Enum values (below GF5.0 entry): {code:java} /** GlassFish 5. */ GF_5 ((short) 5, (short) 0, (short) 0, (short) 0, GlassFishVersion.GF_5_STR); /** GlassFish 5.1 */ GF_5_1 ((short) 5, (short) 1, (short) 0, (short) 0, GlassFishVersion.GF_5_1_STR); {code} Add a constant for the string value of GF 5.1 (below GF 5.0 entry) {code:java} /** A String representation of GF_5 value. */ static final String GF_5_STR = "5"; /** Additional String representations of GF_5 value. */ static final String GF_5_STR_NEXT[] = {"5.0", "5.0.0", "5.0.0.0"}; /** A String representation of GF_5_1 value. */ static final String GF_5_1)STR = "5.1"; /** Additional String representations of GF_5_1 value. */ static final String GF_5_1_STR_NEXT[] = {"5.1.0", "5.1.0.0"}; {code} Add the above values to the Map (below GF 5.0 entry) : {code:java} initStringValuesMapFromArray(GF_5, GF_5_STR_NEXT); initStringValuesMapFromArray(GF_5_1, GF_5_1_STR_NEXT); {code} * Update Glassfish Common module. Add new string value to Bundle Modify *enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/Bundle.properties* to add a string value for GF 5.1 below GF 5.0 {code:java} STR_50_SERVER_NAME=GlassFish Server 5.0 STR_51_SERVER_NAME=GlassFish Server 5.1 {code} * Update Server Details so NB knows where to download GF 5.1 from Modify *enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/ServerDetails.java* and add an entry for GF5.1 below GF5.0 {code:java} /** * details for an instance of GlassFish Server 5 */ GLASSFISH_SERVER_5_0(NbBundle.getMessage(ServerDetails.class, "STR_50_SERVER_NAME", new Object[]{}), // NOI18N "deployer:gfv3ee6wc", // NOI18N 500, "https://download.oracle.com/glassfish/5.0/release/glassfish-5.0.zip;, // NOI18N "https://download.oracle.com/glassfish/5.0/release/glassfish-5.0.zip; // NOI18N ); /** * details for an instance of GlassFish Server 5.1 */ GLASSFISH_SERVER_5_1(NbBundle.getMessage(ServerDetails.class, "STR_51_SERVER_NAME", new Object[]{}), // NOI18N "deployer:gfv3ee6wc", // NOI18N 510, "https://www.eclipse.org/downloads/download.php?file=/glassfish/glassfish-5.1.0.zip_id=492;, // NOI18N "https://www.eclipse.org/downloads/download.php?file=/glassfish/glassfish-5.1.0.zip_id=492; // NOI18N ); {code} Add GF 5.1 to the top of the Server Details iterator (the "top half" should be all supported GF versions, the bottom half is those that can be installed via NB UI - OPTIONALLY remove GF 3.1.2.2 from the bottom half): {code:java} return new ServerWizardIterator(new ServerDetails[]{ GLASSFISH_SERVER_5_1, GLASSFISH_SERVER_5_0, GLASSFISH_SERVER_4_1_2, GLASSFISH_SERVER_4_1_1, GLASSFISH_SERVER_4_1, GLASSFISH_SERVER_4_0_1, GLASSFISH_SERVER_4_0, GLASSFISH_SERVER_3_1_2_2, GLASSFISH_SERVER_3_1_2, GLASSFISH_SERVER_3_1_1, GLASSFISH_SERVER_3_1, GLASSFISH_SERVER_3_0_1, GLASSFISH_SERVER_3,}, new ServerDetails[]{ GLASSFISH_SERVER_5_1, GLASSFISH_SERVER_5_0, GLASSFISH_SERVER_4_1_2, GLASSFISH_SERVER_4_1_1, GLASSFISH_SERVER_4_1, GLASSFISH_SERVER_4_0, GLASSFISH_SERVER_3_1_2_2}); } {code} Add GF5.1 version to list of recognised installed GF versions (below GF 5.0): {code:java} case GF_5: return GLASSFISH_SERVER_5_0.getVersion(); case GF_5_1: return GLASSFISH_SERVER_5_1.getVersion(); {code} The other thing that would need doing would be pointing to the Ecilpse Licence, rather than the Oracle one. I was thinking of something like: * Adding the licence location for each GF version to the enum in ServerDetails * Moving the checkbox and link to the licence to the dialog box where the user chooses the glassfish version * Updating the licence link based on which version of GF is selected in the dropdown by querying the ServerDetails was: Eclipse Foundation have release GlassFish 5.1. Netbeans should add support to download, install and register, as per previous versions of GlassFish. Based on my work on GF 4.1.2 & GF 5.0, the steps need should be something like: * Update Glassfish Tooling module so that NB will recognise GF 5.1 as a distinct version (rather than reporting an instance of GF 5.1 as
[jira] [Updated] (NETBEANS-2130) Add support to download/install/register GlassFish 5.1
[ https://issues.apache.org/jira/browse/NETBEANS-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pete Whelpton updated NETBEANS-2130: Description: Eclipse Foundation have release GlassFish 5.1. Netbeans should add support to download, install and register, as per previous versions of GlassFish. Based on my work on GF 4.1.2 & GF 5.0, the steps need should be something like: * Update Glassfish Tooling module so that NB will recognise GF 5.1 as a distinct version (rather than reporting an instance of GF 5.1 as GF 5.0) Modify *enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/data/GlassFishVersion.java* Add value for GF 5.1 to bottom of Enum values (below GF5.0 entry): {code:java} /** GlassFish 5. */ GF_5 ((short) 5, (short) 0, (short) 0, (short) 0, GlassFishVersion.GF_5_STR); /** GlassFish 5.1 */ GF_5_1 ((short) 5, (short) 1, (short) 0, (short) 0, GlassFishVersion.GF_5_1_STR); {code} Add a constant for the string value of GF 5.1 (below GF 5.0 entry) {code:java} /** A String representation of GF_5 value. */ static final String GF_5_STR = "5"; /** Additional String representations of GF_5 value. */ static final String GF_5_STR_NEXT[] = {"5.0", "5.0.0", "5.0.0.0"}; /** A String representation of GF_5_1 value. */ static final String GF_5_1)STR = "5.1"; /** Additional String representations of GF_5_1 value. */ static final String GF_5_1_STR_NEXT[] = {"5.1.0", "5.1.0.0"}; {code} Add the above values to the Map (below GF 5.0 entry) : {code:java} initStringValuesMapFromArray(GF_5, GF_5_STR_NEXT); initStringValuesMapFromArray(GF_5_1, GF_5_1_STR_NEXT); {code} * Update Glassfish Common module. Add new string value to Bundle Modify *enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/Bundle.properties* to add a string value for GF 5.1 below GF 5.0 {code:java} STR_50_SERVER_NAME=GlassFish Server 5.0 STR_51_SERVER_NAME=GlassFish Server 5.1 {code} * Update Server Details so NB knows where to download GF 5.1 from Modify *enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/ServerDetails.java* and add an entry for GF5.1 below GF5.0 {code:java} /** * details for an instance of GlassFish Server 5 */ GLASSFISH_SERVER_5_0(NbBundle.getMessage(ServerDetails.class, "STR_50_SERVER_NAME", new Object[]{}), // NOI18N "deployer:gfv3ee6wc", // NOI18N 500, "https://download.oracle.com/glassfish/5.0/release/glassfish-5.0.zip;, // NOI18N "https://download.oracle.com/glassfish/5.0/release/glassfish-5.0.zip; // NOI18N ); /** * details for an instance of GlassFish Server 5.1 */ GLASSFISH_SERVER_5_1(NbBundle.getMessage(ServerDetails.class, "STR_51_SERVER_NAME", new Object[]{}), // NOI18N "deployer:gfv3ee6wc", // NOI18N 510, "https://www.eclipse.org/downloads/download.php?file=/glassfish/glassfish-5.1.0.zip_id=492;, // NOI18N "https://www.eclipse.org/downloads/download.php?file=/glassfish/glassfish-5.1.0.zip_id=492; // NOI18N ); {code} Add GF 5.1 to the top of the Server Details iterator (the "top half" should be all supported GF versions, the bottom half is those that can be installed via NB UI - OPTIONALLY remove GF 3.1.2.2 from the bottom half): {code:java} return new ServerWizardIterator(new ServerDetails[]{ GLASSFISH_SERVER_5_1, GLASSFISH_SERVER_5_0, GLASSFISH_SERVER_4_1_2, GLASSFISH_SERVER_4_1_1, GLASSFISH_SERVER_4_1, GLASSFISH_SERVER_4_0_1, GLASSFISH_SERVER_4_0, GLASSFISH_SERVER_3_1_2_2, GLASSFISH_SERVER_3_1_2, GLASSFISH_SERVER_3_1_1, GLASSFISH_SERVER_3_1, GLASSFISH_SERVER_3_0_1, GLASSFISH_SERVER_3,}, new ServerDetails[]{ GLASSFISH_SERVER_5_1, GLASSFISH_SERVER_5_0, GLASSFISH_SERVER_4_1_2, GLASSFISH_SERVER_4_1_1, GLASSFISH_SERVER_4_1, GLASSFISH_SERVER_4_0, GLASSFISH_SERVER_3_1_2_2}); } {code} Add GF5.1 version to list of recognised installed GF versions (below GF 5.0): {code:java} case GF_5: return GLASSFISH_SERVER_5_0.getVersion(); case GF_5_1: return GLASSFISH_SERVER_5_1.getVersion(); {code} The other thing that would need doing would be pointing to the Ecilpse Licence, rather than the Oracle one. I was thinking of something like: * Adding the licence location for each GF version to the enum in ServerDetails * Moving the checkbox and link to the licence to the dialog box where the user chooses the glassfish version * Updating the licence link based on which version of GF is selected in the dropdown by querying the ServerDetails was: Eclipse Foundation have release GlassFish 5.1. Netbeans should add support to download, install and register, as per previous versions of GlassFish. Based on my work on GF 4.1.2 & GF 5.0, the steps need should be something like: * Update Glassfish Tooling module so that NB will recognise GF 5.1 as a distinct version (rather than reporting an instance of GF 5.1 as GF
[incubator-netbeans] branch master updated: [NETBEANS-1251] nb-javac 11 testcase failure : Compound var declaration
This is an automated email from the ASF dual-hosted git repository. arusinha pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git The following commit(s) were added to refs/heads/master by this push: new bf3927d [NETBEANS-1251] nb-javac 11 testcase failure : Compound var declaration new 2d76c29 Merge pull request #1131 from vikasprabhakar/netbeans-1251 bf3927d is described below commit bf3927d1cab680a5cbc7eaa1c3f6091b4024f00c Author: Vikas Prabhakar AuthorDate: Tue Feb 12 02:49:29 2019 -0800 [NETBEANS-1251] nb-javac 11 testcase failure : Compound var declaration --- .../java/hints/errors/VarCompDeclaration.java | 4 .../java/hints/errors/VarCompDeclarationTest.java | 24 -- .../hints/infrastructure/ErrorHintsTestBase.java | 3 ++- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/java/java.hints/src/org/netbeans/modules/java/hints/errors/VarCompDeclaration.java b/java/java.hints/src/org/netbeans/modules/java/hints/errors/VarCompDeclaration.java index 9706480..aa7170b 100644 --- a/java/java.hints/src/org/netbeans/modules/java/hints/errors/VarCompDeclaration.java +++ b/java/java.hints/src/org/netbeans/modules/java/hints/errors/VarCompDeclaration.java @@ -123,6 +123,10 @@ public class VarCompDeclaration implements ErrorRule { int pos = statements.indexOf(statementPath.getLeaf()); List newStatements = new ArrayList<>(); if (pos > 0) { + if(info.getTreeUtilities().isPartOfCompoundVariableDeclaration(statements.get(pos - 1)) +&& !info.getTreeUtilities().isEndOfCompoundVariableDeclaration(statements.get(pos - 1))){ +pos--; +} newStatements.addAll(statements.subList(0, pos)); } diff --git a/java/java.hints/test/unit/src/org/netbeans/modules/java/hints/errors/VarCompDeclarationTest.java b/java/java.hints/test/unit/src/org/netbeans/modules/java/hints/errors/VarCompDeclarationTest.java index 6851b7d..a882087 100644 --- a/java/java.hints/test/unit/src/org/netbeans/modules/java/hints/errors/VarCompDeclarationTest.java +++ b/java/java.hints/test/unit/src/org/netbeans/modules/java/hints/errors/VarCompDeclarationTest.java @@ -68,7 +68,7 @@ public class VarCompDeclarationTest extends ErrorHintsTestBase { "package test; \n" + "public class Test {\n" + "private void test() { \n" + - "var v = 1, /*comment*/ v1 = 10;\n" + + "var v = 1, v1 = 10, v2 = 100;\n" + "} \n" + "}", -1, @@ -76,8 +76,9 @@ public class VarCompDeclarationTest extends ErrorHintsTestBase { ("package test; \n" + "public class Test {\n" + "private void test() { \n" + - "var v = 1; /*comment*/ \n" + + "var v = 1;\n" + "var v1 = 10;\n" + + "var v2 = 100;\n" + "} \n" + "}").replaceAll("[\\s]+", " ")); } @@ -259,6 +260,25 @@ public class VarCompDeclarationTest extends ErrorHintsTestBase { "}").replaceAll("[\\s]+", " ")); } +public void testCase11() throws Exception { +performFixTest("test/Test.java", + "package test; \n" + + "public class Test {\n" + + "private void test() { \n" + + "var v = {1, 2}, w = 2;\n" + + "} \n" + + "}", + -1, + NbBundle.getMessage(VarCompDeclarationTest.class, "FIX_VarCompDeclaration"), + ("package test; \n" + + "public class Test {\n" + + "private void test() { \n" + + "var v = {1, 2};\n" + + "var w = 2;\n" + + "} \n" + + "}").replaceAll("[\\s]+", " ")); +} + @Override protected List computeFixes(CompilationInfo info, int pos, TreePath path) throws Exception { return new VarCompDeclaration().run(info, null, pos, path, null); diff --git a/java/java.hints/test/unit/src/org/netbeans/modules/java/hints/infrastructure/ErrorHintsTestBase.java b/java/java.hints/test/unit/src/org/netbeans/modules/java/hints/infrastructure/ErrorHintsTestBase.java index 00783ee..1ca6c49 100644 --- a/java/java.hints/test/unit/src/org/netbeans/modules/java/hints/infrastructure/ErrorHintsTestBase.java +++
[jira] [Updated] (NETBEANS-2130) Add support to download/install/register GlassFish 5.1
[ https://issues.apache.org/jira/browse/NETBEANS-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pete Whelpton updated NETBEANS-2130: Description: Eclipse Foundation have release GlassFish 5.1. Netbeans should add support to download, install and register, as per previous versions of GlassFish. Based on my work on GF 4.1.2 & GF 5.0, the steps need should be something like: * Update Glassfish Tooling module so that NB will recognise GF 5.1 as a distinct version (rather than reporting an instance of GF 5.1 as GF 5.0) Modify enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/data/GlassFishVersion.java Add value for GF 5.1 to bottom of Enum values (below GF5.0 entry): {code:java} /** GlassFish 5. */ GF_5 ((short) 5, (short) 0, (short) 0, (short) 0, GlassFishVersion.GF_5_STR); /** GlassFish 5.1 */ GF_5_1 ((short) 5, (short) 1, (short) 0, (short) 0, GlassFishVersion.GF_5_1_STR); {code} Add a constant for the string value of GF 5.1 (below GF 5.0 entry) {code:java} /** A String representation of GF_5 value. */ static final String GF_5_STR = "5"; /** Additional String representations of GF_5 value. */ static final String GF_5_STR_NEXT[] = {"5.0", "5.0.0", "5.0.0.0"}; /** A String representation of GF_5_1 value. */ static final String GF_5_1)STR = "5.1"; /** Additional String representations of GF_5_1 value. */ static final String GF_5_1_STR_NEXT[] = {"5.1.0", "5.1.0.0"}; {code} Add the above values to the Map (below GF 5.0 entry) : {code:java} initStringValuesMapFromArray(GF_5, GF_5_STR_NEXT); initStringValuesMapFromArray(GF_5_1, GF_5_1_STR_NEXT); {code} * Update Glassfish Common module. Add new string value to Bundle Modify enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/Bundle.properties to add a string value for GF 5.1 below GF 5.0 {code:java} STR_50_SERVER_NAME=GlassFish Server 5.0 STR_51_SERVER_NAME=GlassFish Server 5.1 {code} * Update Server Details so NB knows where to download GF 5.1 from Modify enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/ServerDetails.java and add an entry for GF5.1 below GF5.0 {code:java} /** * details for an instance of GlassFish Server 5 */ GLASSFISH_SERVER_5_0(NbBundle.getMessage(ServerDetails.class, "STR_50_SERVER_NAME", new Object[]{}), // NOI18N "deployer:gfv3ee6wc", // NOI18N 500, "https://download.oracle.com/glassfish/5.0/release/glassfish-5.0.zip;, // NOI18N "https://download.oracle.com/glassfish/5.0/release/glassfish-5.0.zip; // NOI18N ); /** * details for an instance of GlassFish Server 5.1 */ GLASSFISH_SERVER_5_1(NbBundle.getMessage(ServerDetails.class, "STR_51_SERVER_NAME", new Object[]{}), // NOI18N "deployer:gfv3ee6wc", // NOI18N 510, "https://www.eclipse.org/downloads/download.php?file=/glassfish/glassfish-5.1.0.zip_id=492;, // NOI18N "https://www.eclipse.org/downloads/download.php?file=/glassfish/glassfish-5.1.0.zip_id=492; // NOI18N ); {code} Add GF 5.1 to the top of the Server Details iterator (the "top half" should be all supported GF versions, the bottom half is those that can be installed via NB UI - OPTIONALLY remove GF 3.1.2.2 from the bottom half): {code:java} return new ServerWizardIterator(new ServerDetails[]{ GLASSFISH_SERVER_5_1, GLASSFISH_SERVER_5_0, GLASSFISH_SERVER_4_1_2, GLASSFISH_SERVER_4_1_1, GLASSFISH_SERVER_4_1, GLASSFISH_SERVER_4_0_1, GLASSFISH_SERVER_4_0, GLASSFISH_SERVER_3_1_2_2, GLASSFISH_SERVER_3_1_2, GLASSFISH_SERVER_3_1_1, GLASSFISH_SERVER_3_1, GLASSFISH_SERVER_3_0_1, GLASSFISH_SERVER_3,}, new ServerDetails[]{ GLASSFISH_SERVER_5_1, GLASSFISH_SERVER_5_0, GLASSFISH_SERVER_4_1_2, GLASSFISH_SERVER_4_1_1, GLASSFISH_SERVER_4_1, GLASSFISH_SERVER_4_0, GLASSFISH_SERVER_3_1_2_2}); } {code} Add GF5.1 version to list of recognised installed GF versions (below GF 5.0): {code:java} case GF_5: return GLASSFISH_SERVER_5_0.getVersion(); case GF_5_1: return GLASSFISH_SERVER_5_1.getVersion(); {code} The other thing that would need doing would be pointing to the Ecilpse Licence, rather than the Oracle one. I was thinking of something link: * Adding the licence location for each GF version to the enum in ServerDetails * Moving the checkbox and link to the licence to the dialog box where the user chooses the glassfish version * Updating the licence link based on which version of GF is selected in the dropdown by querying the ServerDetails was: Eclipse Foundation have release GlassFish 5.1. Netbeans should add support to download, install and register, as per previous versions of GlassFish. Based on my work on GF 4.1.2 & GF 5.0, the steps need should be something like: # Update Glassfish Tooling module so that NB will recognise GF 5.1 as a distinct version (rather than reporting an instance of GF 5.1 as GF 5.0)
[jira] [Updated] (NETBEANS-2130) Add support to download/install/register GlassFish 5.1
[ https://issues.apache.org/jira/browse/NETBEANS-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pete Whelpton updated NETBEANS-2130: Description: Eclipse Foundation have release GlassFish 5.1. Netbeans should add support to download, install and register, as per previous versions of GlassFish. Based on my work on GF 4.1.2 & GF 5.0, the steps need should be something like: * Update Glassfish Tooling module so that NB will recognise GF 5.1 as a distinct version (rather than reporting an instance of GF 5.1 as GF 5.0) Modify *enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/data/GlassFishVersion.java* Add value for GF 5.1 to bottom of Enum values (below GF5.0 entry): {code:java} /** GlassFish 5. */ GF_5 ((short) 5, (short) 0, (short) 0, (short) 0, GlassFishVersion.GF_5_STR); /** GlassFish 5.1 */ GF_5_1 ((short) 5, (short) 1, (short) 0, (short) 0, GlassFishVersion.GF_5_1_STR); {code} Add a constant for the string value of GF 5.1 (below GF 5.0 entry) {code:java} /** A String representation of GF_5 value. */ static final String GF_5_STR = "5"; /** Additional String representations of GF_5 value. */ static final String GF_5_STR_NEXT[] = {"5.0", "5.0.0", "5.0.0.0"}; /** A String representation of GF_5_1 value. */ static final String GF_5_1)STR = "5.1"; /** Additional String representations of GF_5_1 value. */ static final String GF_5_1_STR_NEXT[] = {"5.1.0", "5.1.0.0"}; {code} Add the above values to the Map (below GF 5.0 entry) : {code:java} initStringValuesMapFromArray(GF_5, GF_5_STR_NEXT); initStringValuesMapFromArray(GF_5_1, GF_5_1_STR_NEXT); {code} * Update Glassfish Common module. Add new string value to Bundle Modify *enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/Bundle.properties* to add a string value for GF 5.1 below GF 5.0 {code:java} STR_50_SERVER_NAME=GlassFish Server 5.0 STR_51_SERVER_NAME=GlassFish Server 5.1 {code} * Update Server Details so NB knows where to download GF 5.1 from Modify *enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/ServerDetails.java* and add an entry for GF5.1 below GF5.0 {code:java} /** * details for an instance of GlassFish Server 5 */ GLASSFISH_SERVER_5_0(NbBundle.getMessage(ServerDetails.class, "STR_50_SERVER_NAME", new Object[]{}), // NOI18N "deployer:gfv3ee6wc", // NOI18N 500, "https://download.oracle.com/glassfish/5.0/release/glassfish-5.0.zip;, // NOI18N "https://download.oracle.com/glassfish/5.0/release/glassfish-5.0.zip; // NOI18N ); /** * details for an instance of GlassFish Server 5.1 */ GLASSFISH_SERVER_5_1(NbBundle.getMessage(ServerDetails.class, "STR_51_SERVER_NAME", new Object[]{}), // NOI18N "deployer:gfv3ee6wc", // NOI18N 510, "https://www.eclipse.org/downloads/download.php?file=/glassfish/glassfish-5.1.0.zip_id=492;, // NOI18N "https://www.eclipse.org/downloads/download.php?file=/glassfish/glassfish-5.1.0.zip_id=492; // NOI18N ); {code} Add GF 5.1 to the top of the Server Details iterator (the "top half" should be all supported GF versions, the bottom half is those that can be installed via NB UI - OPTIONALLY remove GF 3.1.2.2 from the bottom half): {code:java} return new ServerWizardIterator(new ServerDetails[]{ GLASSFISH_SERVER_5_1, GLASSFISH_SERVER_5_0, GLASSFISH_SERVER_4_1_2, GLASSFISH_SERVER_4_1_1, GLASSFISH_SERVER_4_1, GLASSFISH_SERVER_4_0_1, GLASSFISH_SERVER_4_0, GLASSFISH_SERVER_3_1_2_2, GLASSFISH_SERVER_3_1_2, GLASSFISH_SERVER_3_1_1, GLASSFISH_SERVER_3_1, GLASSFISH_SERVER_3_0_1, GLASSFISH_SERVER_3,}, new ServerDetails[]{ GLASSFISH_SERVER_5_1, GLASSFISH_SERVER_5_0, GLASSFISH_SERVER_4_1_2, GLASSFISH_SERVER_4_1_1, GLASSFISH_SERVER_4_1, GLASSFISH_SERVER_4_0, GLASSFISH_SERVER_3_1_2_2}); } {code} Add GF5.1 version to list of recognised installed GF versions (below GF 5.0): {code:java} case GF_5: return GLASSFISH_SERVER_5_0.getVersion(); case GF_5_1: return GLASSFISH_SERVER_5_1.getVersion(); {code} The other thing that would need doing would be pointing to the Ecilpse Licence, rather than the Oracle one. I was thinking of something link: * Adding the licence location for each GF version to the enum in ServerDetails * Moving the checkbox and link to the licence to the dialog box where the user chooses the glassfish version * Updating the licence link based on which version of GF is selected in the dropdown by querying the ServerDetails was: Eclipse Foundation have release GlassFish 5.1. Netbeans should add support to download, install and register, as per previous versions of GlassFish. Based on my work on GF 4.1.2 & GF 5.0, the steps need should be something like: * Update Glassfish Tooling module so that NB will recognise GF 5.1 as a distinct version (rather than reporting an instance of GF 5.1 as GF
[jira] [Updated] (NETBEANS-2130) Add support to download/install/register GlassFish 5.1
[ https://issues.apache.org/jira/browse/NETBEANS-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pete Whelpton updated NETBEANS-2130: Description: Eclipse Foundation have release GlassFish 5.1. Netbeans should add support to download, install and register, as per previous versions of GlassFish. Based on my work on GF 4.1.2 & GF 5.0, the steps need should be something like: # Update Glassfish Tooling module so that NB will recognise GF 5.1 as a distinct version (rather than reporting an instance of GF 5.1 as GF 5.0) Modify enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/data/GlassFishVersion.java Add value for GF 5.1 to bottom of Enum values (below GF5.0 entry): {code:java} /** GlassFish 5. */ GF_5 ((short) 5, (short) 0, (short) 0, (short) 0, GlassFishVersion.GF_5_STR); /** GlassFish 5.1 */ GF_5_1 ((short) 5, (short) 1, (short) 0, (short) 0, GlassFishVersion.GF_5_1_STR); {code} Add a constant for the string value of GF 5.1 (below GF 5.0 entry) {code:java} /** A String representation of GF_5 value. */ static final String GF_5_STR = "5"; /** Additional String representations of GF_5 value. */ static final String GF_5_STR_NEXT[] = {"5.0", "5.0.0", "5.0.0.0"}; /** A String representation of GF_5_1 value. */ static final String GF_5_1)STR = "5.1"; /** Additional String representations of GF_5_1 value. */ static final String GF_5_1_STR_NEXT[] = {"5.1.0", "5.1.0.0"}; {code} Add the above values to the Map (below GF 5.0 entry) : {code:java} initStringValuesMapFromArray(GF_5, GF_5_STR_NEXT); initStringValuesMapFromArray(GF_5_1, GF_5_1_STR_NEXT); {code} # Update Glassfish Common module. Add new string value to Bundle Modify enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/Bundle.properties to add a string value for GF 5.1 below GF 5.0 {code:java} STR_50_SERVER_NAME=GlassFish Server 5.0 STR_51_SERVER_NAME=GlassFish Server 5.1 {code} # Update Server Details so NB knows where to download GF 5.1 from Modify enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/ServerDetails.java and add an entry for GF5.1 below GF5.0 {code:java} /** * details for an instance of GlassFish Server 5 */ GLASSFISH_SERVER_5_0(NbBundle.getMessage(ServerDetails.class, "STR_50_SERVER_NAME", new Object[]{}), // NOI18N "deployer:gfv3ee6wc", // NOI18N 500, "https://download.oracle.com/glassfish/5.0/release/glassfish-5.0.zip;, // NOI18N "https://download.oracle.com/glassfish/5.0/release/glassfish-5.0.zip; // NOI18N ); /** * details for an instance of GlassFish Server 5.1 */ GLASSFISH_SERVER_5_1(NbBundle.getMessage(ServerDetails.class, "STR_51_SERVER_NAME", new Object[]{}), // NOI18N "deployer:gfv3ee6wc", // NOI18N 510, "https://www.eclipse.org/downloads/download.php?file=/glassfish/glassfish-5.1.0.zip_id=492;, // NOI18N "https://www.eclipse.org/downloads/download.php?file=/glassfish/glassfish-5.1.0.zip_id=492; // NOI18N ); {code} Add GF 5.1 to the top of the Server Details iterator (the "top half" should be all supported GF versions, the bottom half is those that can be installed via NB UI - OPTIONALLY remove GF 3.1.2.2 from the bottom half): {code:java} return new ServerWizardIterator(new ServerDetails[]{ GLASSFISH_SERVER_5_1, GLASSFISH_SERVER_5_0, GLASSFISH_SERVER_4_1_2, GLASSFISH_SERVER_4_1_1, GLASSFISH_SERVER_4_1, GLASSFISH_SERVER_4_0_1, GLASSFISH_SERVER_4_0, GLASSFISH_SERVER_3_1_2_2, GLASSFISH_SERVER_3_1_2, GLASSFISH_SERVER_3_1_1, GLASSFISH_SERVER_3_1, GLASSFISH_SERVER_3_0_1, GLASSFISH_SERVER_3,}, new ServerDetails[]{ GLASSFISH_SERVER_5_1, GLASSFISH_SERVER_5_0, GLASSFISH_SERVER_4_1_2, GLASSFISH_SERVER_4_1_1, GLASSFISH_SERVER_4_1, GLASSFISH_SERVER_4_0, GLASSFISH_SERVER_3_1_2_2}); } {code} Add GF5.1 version to list of recognised installed GF versions (below GF 5.0): {code:java} case GF_5: return GLASSFISH_SERVER_5_0.getVersion(); case GF_5_1: return GLASSFISH_SERVER_5_1.getVersion(); {code} The other thing that would need doing would be pointing to the Ecilpse Licence, rather than the Oracle one. I was thinking of something link: * Adding the licence location for each GF version to the enum in ServerDetails * Moving the checkbox and link to the licence to the dialog box where the user chooses the glassfish version * Updating the licence link based on which version of GF is selected in the dropdown by querying the ServerDetails was: Eclipse Foundation have release GlassFish 5.1. Netbeans should add support to download, install and register, as per previous versions of GlassFish. Based on my work on GF 4.1.2 & GF 5.0, the steps need should be something like # Update Glassfish Tooling module so that NB will recognise GF 5.1 as a distinct version (rather than reporting an
[jira] [Created] (NETBEANS-2130) Add support to download/install/register GlassFish 5.1
Pete Whelpton created NETBEANS-2130: --- Summary: Add support to download/install/register GlassFish 5.1 Key: NETBEANS-2130 URL: https://issues.apache.org/jira/browse/NETBEANS-2130 Project: NetBeans Issue Type: Improvement Components: serverplugins - GlassFish Affects Versions: 11.0 Reporter: Pete Whelpton Eclipse Foundation have release GlassFish 5.1. Netbeans should add support to download, install and register, as per previous versions of GlassFish. Based on my work on GF 4.1.2 & GF 5.0, the steps need should be something like # Update Glassfish Tooling module so that NB will recognise GF 5.1 as a distinct version (rather than reporting an instance of GF 5.1 as GF 5.0) Modify enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/data/GlassFishVersion.java Add value for GF 5.1 to bottom of Enum values (below GF5.0 entry): [code] /** GlassFish 5. */ GF_5 ((short) 5, (short) 0, (short) 0, (short) 0, GlassFishVersion.GF_5_STR); /** GlassFish 5.1 */ GF_5_1 ((short) 5, (short) 1, (short) 0, (short) 0, GlassFishVersion.GF_5_1_STR); [/code] Add a constant for the string value of GF 5.1 (below GF 5.0 entry) [code] /** A String representation of GF_5 value. */ static final String GF_5_STR = "5"; /** Additional String representations of GF_5 value. */ static final String GF_5_STR_NEXT[] = {"5.0", "5.0.0", "5.0.0.0"}; /** A String representation of GF_5_1 value. */ static final String GF_5_1)STR = "5.1"; /** Additional String representations of GF_5_1 value. */ static final String GF_5_1_STR_NEXT[] = {"5.1.0", "5.1.0.0"}; [/code] Add the above values to the Map (below GF 5.0 entry) : [code] initStringValuesMapFromArray(GF_5, GF_5_STR_NEXT); initStringValuesMapFromArray(GF_5_1, GF_5_1_STR_NEXT); [/code] # Update Glassfish Common module. Add new string value to Bundle Modify enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/Bundle.properties to add a string value for GF 5.1 below GF 5.0 [code] STR_50_SERVER_NAME=GlassFish Server 5.0 STR_51_SERVER_NAME=GlassFish Server 5.1 [/code] # Update Server Details so NB knows where to download GF 5.1 from Modify enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/ServerDetails.java and add an entry for GF5.1 below GF5.0 [code] /** * details for an instance of GlassFish Server 5 */ GLASSFISH_SERVER_5_0(NbBundle.getMessage(ServerDetails.class, "STR_50_SERVER_NAME", new Object[]{}), // NOI18N "deployer:gfv3ee6wc", // NOI18N 500, "https://download.oracle.com/glassfish/5.0/release/glassfish-5.0.zip;, // NOI18N "https://download.oracle.com/glassfish/5.0/release/glassfish-5.0.zip; // NOI18N ); /** * details for an instance of GlassFish Server 5.1 */ GLASSFISH_SERVER_5_1(NbBundle.getMessage(ServerDetails.class, "STR_51_SERVER_NAME", new Object[]{}), // NOI18N "deployer:gfv3ee6wc", // NOI18N 510, "https://www.eclipse.org/downloads/download.php?file=/glassfish/glassfish-5.1.0.zip_id=492;, // NOI18N "https://www.eclipse.org/downloads/download.php?file=/glassfish/glassfish-5.1.0.zip_id=492; // NOI18N ); [/code] Add GF 5.1 to the top of the Server Details iterator (the "top half" should be all supported GF versions, the bottom half is those that can be installed via NB UI - OPTIONALLY remove GF 3.1.2.2 from the bottom half): [code] return new ServerWizardIterator(new ServerDetails[]{ GLASSFISH_SERVER_5_1, GLASSFISH_SERVER_5_0, GLASSFISH_SERVER_4_1_2, GLASSFISH_SERVER_4_1_1, GLASSFISH_SERVER_4_1, GLASSFISH_SERVER_4_0_1, GLASSFISH_SERVER_4_0, GLASSFISH_SERVER_3_1_2_2, GLASSFISH_SERVER_3_1_2, GLASSFISH_SERVER_3_1_1, GLASSFISH_SERVER_3_1, GLASSFISH_SERVER_3_0_1, GLASSFISH_SERVER_3,}, new ServerDetails[]{ GLASSFISH_SERVER_5_1, GLASSFISH_SERVER_5_0, GLASSFISH_SERVER_4_1_2, GLASSFISH_SERVER_4_1_1, GLASSFISH_SERVER_4_1, GLASSFISH_SERVER_4_0, GLASSFISH_SERVER_3_1_2_2}); } [/code] Add GF5.1 version to list of recognised installed GF versions (below GF 5.0): [code] case GF_5: return GLASSFISH_SERVER_5_0.getVersion(); case GF_5_1: return GLASSFISH_SERVER_5_1.getVersion(); [/code] The other thing that would need doing would be pointing to the Ecilpse Licence, rather than the Oracle one. I was thinking of something link: * Adding the licence location for each GF version to the enum in ServerDetails * Moving the checkbox and link to the licence to the dialog box where the user chooses the glassfish version * Updating the licence link based on which version of GF is selected in the dropdown by querying the ServerDetails -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail:
[jira] [Assigned] (NETBEANS-326) Autocomplete does not work inside a lambda expression
[ https://issues.apache.org/jira/browse/NETBEANS-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sarvesh Kesharwani reassigned NETBEANS-326: --- Assignee: Sarvesh Kesharwani > Autocomplete does not work inside a lambda expression > - > > Key: NETBEANS-326 > URL: https://issues.apache.org/jira/browse/NETBEANS-326 > Project: NetBeans > Issue Type: Bug > Components: java - Editor >Affects Versions: 8.2, 10.0 > Environment: Windows 10 Enterprise >Reporter: Morgan M >Assignee: Sarvesh Kesharwani >Priority: Critical > Labels: patch, usability > Attachments: RLtLF.png, t51Jz.png > > > When declaring an object with a lambda expression, autocomplete for variables > inside the lambda does not seem to work, and instead I see global variables, > suggestions for keywords amongst other things as shown below. > {code:java} > public class SOInner { > private ActionListener listenerExampleLambda = e -> { > //autocomplete DOES NOT work for these vars > int testVarInner = 2; > int testVarInner2 = 4; > }; > private ActionListener listenerExampleClass = new ActionListener() { > @Override > public void actionPerformed(ActionEvent e) { > //autocomplete works for these vars > int testVarInner = 2; > int testVarInner2 = 4; > } > }; > private Comparable comparableExampleLambda = o -> { > //autocomplete DOES NOT work for these vars > String testString = "Hello"; > String testString2 = "Hi"; > return 0; > }; > private Comparable comparableExampleClass = new > Comparable() { > @Override > public int compareTo(SOInner o) { > //autocomplete works for these vars > String testString = "Hello"; > String testString2 = "Hi"; > return 0; > } > }; > } > {code} > You can reproduce the bug by placing your cursor inside the lambda > expression under the String variables and pressing Ctrl+Space. You will > notice that testString and testString2 do not appear. They do appear if these > steps are reproduced from within an anonymous inner class. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2129) New Gradle Java Application doesn't check if Application exists in Path
[ https://issues.apache.org/jira/browse/NETBEANS-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alessandro Falappa updated NETBEANS-2129: - Component/s: projects - Gradle > New Gradle Java Application doesn't check if Application exists in Path > --- > > Key: NETBEANS-2129 > URL: https://issues.apache.org/jira/browse/NETBEANS-2129 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Affects Versions: 11.0 >Reporter: michael anderl >Priority: Major > > When I create a new gradle java application, NB doesn't check if there is an > existing java gradle application in the project folder. Instead it just > creates a new one inside the existing one. > No error message like in NB9 or before > -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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-2038) Anomalous termination of gradle task
[ https://issues.apache.org/jira/browse/NETBEANS-2038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16770859#comment-16770859 ] Alessandro Falappa commented on NETBEANS-2038: -- Thanks Laszlo! > Anomalous termination of gradle task > > > Key: NETBEANS-2038 > URL: https://issues.apache.org/jira/browse/NETBEANS-2038 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Affects Versions: 11.0 >Reporter: Alessandro Falappa >Assignee: Laszlo Kishalmi >Priority: Minor > Labels: pull-request-available > Fix For: 11.0 > > Time Spent: 50m > Remaining Estimate: 0h > > Generate a Gradle Spring Boot project on > [http://start.spring.io|http://start.spring.io/] adding the *Web* dependency. > Unzip the download archive and open it in NetBeans. > In the Navigator right click on the _bootRun_ task and choose _Run Task..._ > from the context menu. The project compiles and starts directly from the > build folder (the bootRun is a task provided by the spring boot gradle > plugin) and should run an embedded Tomcat server listening on port 8080. > Stop the task clicking the red stop button in the output window. > The task stops but the launched gradle process reports an abnormal > termination in the output window: > {code:java} > Could not read standard output of command > '/usr/lib/jvm/java-8-oracle/bin/java'. > java.io.IOException: Stream closed > at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170) > at java.io.BufferedInputStream.read1(BufferedInputStream.java:291) > at java.io.BufferedInputStream.read(BufferedInputStream.java:345) > at java.io.FilterInputStream.read(FilterInputStream.java:107) > at > org.gradle.process.internal.streams.ExecOutputHandleRunner.forwardContent(ExecOutputHandleRunner.java:61) > at > org.gradle.process.internal.streams.ExecOutputHandleRunner.run(ExecOutputHandleRunner.java:51) > at > org.gradle.internal.operations.CurrentBuildOperationPreservingRunnable.run(CurrentBuildOperationPreservingRunnable.java:42) > at > org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) > at > org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at > org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) > at java.lang.Thread.run(Thread.java:748) > > Task :bootRun FAILED > FAILURE: Build failed with an exception. > * What went wrong: > Execution failed for task ':bootRun'. > > Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with > > non-zero exit value 143 > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. Run with --scan to get full insights. > * Get more help at https://help.gradle.org > Deprecated Gradle features were used in this build, making it incompatible > with Gradle 5.0. > Use '--warning-mode all' to show the individual deprecation warnings. > See > https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings > BUILD FAILED in 50s > 3 actionable tasks: 1 executed, 2 up-to-date > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) - 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