[netbeans] branch master updated: Clean up the use of deprecated numeric constructors (#3656)
This is an automated email from the ASF dual-hosted git repository. bwalker pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new cf6d002 Clean up the use of deprecated numeric constructors (#3656) cf6d002 is described below commit cf6d002187bb8e844305276075ea48b3635ca563 Author: Brad Walker AuthorDate: Tue Feb 22 21:35:38 2022 -0500 Clean up the use of deprecated numeric constructors (#3656) This change cleans up the use of old deprecated numeric constructors.. Warnings like this will no longer happen: [repeat] /home/bwalker/src/netbeans/java/testng/src/org/netbeans/modules/testng/AbstractTestGenerator.java:1700: warning: [deprecation] Float(float) in Float has been deprecated [repeat] defValue = maker.Literal(new Float(0.0F)); [repeat] ^ The newer implements favor factory methods like valueOf() or parseFloat() since they are likely to yield significantly better space and time performance by caching frequently requested values. Most of the changes are in the ide/profiler/enterprise/ide modules. --- .../ui/wizard/NewNbModuleWizardIterator.java | 2 +- .../ui/wizard/common/BasicWizardIterator.java | 2 +- .../modules/profiler/j2ee/J2EEProfilerSPI.java | 2 +- .../web/core/palette/items/ChooseCustomizer.java | 2 +- .../netbeans/modules/web/wizards/ServletData.java | 12 ++--- .../web/jsf/editor/el/JsfVariableContext.java | 7 ++- .../lib/src/org/netbeans/tax/TreeEntityDecl.java | 8 ++-- .../lib/src/org/netbeans/tax/TreeUtilities.java| 4 +- .../src/org/netbeans/tax/io/TreeStreamResult.java | 4 +- .../netbeans/modules/beans/ModePropertyEditor.java | 4 +- .../jpda/projects/EditorContextSupport.java| 4 +- .../jpda/truffle/source/SourceURLMapper.java | 2 +- .../jpda/backend/truffle/SourcePosition.java | 2 +- .../jpda/ui/models/BreakpointsTreeModelFilter.java | 2 +- .../modules/debugger/jpda/JPDADebuggerImpl.java| 2 +- .../org/netbeans/modules/i18n/regexp/Parser.java | 23 - .../java/editor/imports/ClipboardHandler.java | 2 +- .../customizer/J2SEModularProjectProperties.java | 27 ++- .../ui/customizer/J2SEProjectProperties.java | 6 +-- .../java/project/ui/NewJavaFileWizardIterator.java | 2 +- .../modules/java/source/save/ComputeDiff.java | 55 +++--- .../source/queriesimpl/TemplateWizardIterator.java | 2 +- .../modules/junit/AbstractTestGenerator.java | 2 +- .../java/spi/ui/JavaRefactoringGlobalAction.java | 2 +- .../refactoring/java/ui/ChangeParametersPanel.java | 4 +- .../java/ui/JavaRefactoringGlobalAction.java | 2 +- .../refactoring/java/ui/MoveMembersPanel.java | 2 +- .../modules/testng/AbstractTestGenerator.java | 28 +-- .../modules/xml/jaxb/ui/JAXBWizardIterator.java| 6 +-- .../java/generator/SAXGeneratorAbstractPanel.java | 2 +- .../project/PanelProjectLocationExtSrc.form| 2 +- .../project/PanelProjectLocationExtSrc.java| 4 +- .../project/PanelProjectLocationVisual.java| 10 ++-- nbi/engine/nbproject/project.properties| 12 + .../org/netbeans/installer/utils/LogManager.java | 2 +- .../netbeans/installer/utils/helper/Version.java | 13 +++-- .../installer/utils/system/UnixNativeUtils.java| 39 ++- .../utils/system/launchers/impl/ExeLauncher.java | 2 +- .../utils/system/windows/WindowsRegistry.java | 14 +++--- .../components/actions/SearchForJavaAction.java| 10 ++-- .../components/panels/PreInstallSummaryPanel.java | 2 +- .../lib/profiler/global/TransactionalSupport.java | 18 +++ .../netbeans/lib/profiler/heap/DominatorTree.java | 4 +- .../org/netbeans/lib/profiler/heap/HprofHeap.java | 6 +-- .../org/netbeans/lib/profiler/heap/HprofProxy.java | 2 +- .../org/netbeans/lib/profiler/heap/NumberList.java | 8 ++-- .../lib/profiler/heap/StackFrameSegment.java | 10 ++-- .../lib/profiler/heap/StackTraceSegment.java | 10 ++-- .../netbeans/lib/profiler/heap/StringSegment.java | 2 +- .../profiler/heap/SyntheticClassObjectValue.java | 2 +- .../lib/profiler/results/cpu/CPUCCTContainer.java | 2 +- .../profiler/results/locks/LockGraphBuilder.java | 4 +- .../lib/profiler/server/HeapHistogramManager.java | 2 +- .../lib/profiler/server/ProfilerInterface.java | 2 +- .../lib/profiler/server/ProfilerRuntime.java | 2 +- .../lib/profiler/server/ProfilerRuntimeMemory.java | 2 +- .../profiler/server/ProfilerRuntimeSampler.java| 4 +- 57 files changed, 203 insertions(+), 211 deletions(-) diff --git a/apisupport/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/NewNbModuleWizardIterator.java b/apisupport/apisupport.ant/src
[jira] [Commented] (NETBEANS-503) Please support blade template engine for laravel
[ https://issues.apache.org/jira/browse/NETBEANS-503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17496416#comment-17496416 ] rfrkk commented on NETBEANS-503: [~haidubogdan] you are the bestest. What a wonderful plugin. [https://github.com/haidubogdan/netbeans-php-blade-plugin] > Please support blade template engine for laravel > > > Key: NETBEANS-503 > URL: https://issues.apache.org/jira/browse/NETBEANS-503 > Project: NetBeans > Issue Type: Improvement > Components: php - Editor, php - Formatting & Indentation >Affects Versions: Next >Reporter: Christian Lenz >Assignee: Haidu Bogdan >Priority: Major > Attachments: blade-phpstorm.png, blade_navigator.png, > code_completion.png > > > Atm, NetBeans does not support laravel out of the box, therefore, NetBeans > does not support the blade template engine. Blade templates are set to > foo.blade.php. > So therefore, we need a new filetype which has the extension .blade.php and > it should support: PHP, Blade Templates, HTML (Don't know whether jade is > needed too or not), CSS, JS. See the screenshot from PHPStorm, they already > supports Blade. > Yes it should be possible to have PHP inside too. This is an official > statement from the developers: > *Blade is the simple, yet powerful templating engine provided with Laravel. > Unlike other popular PHP templating engines, Blade does not restrict you from > using plain PHP code in your views. In fact, all Blade views are compiled > into plain PHP code and cached until they are modified, meaning Blade adds > essentially zero overhead to your application. Blade view files use the > .blade.php file extension and are typically stored in the resources/views > directory.* > The folder is not relevant, it should be possible in every folder. So Syntax > highlighting, code completion for each type of the language should be > possible in that filetype, like in a normal HTML file. > Cheers > Chris -- This message was sent by Atlassian Jira (v8.20.1#820001) - 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] (NETBEANSINFRA-263) NetBeans Module plugin fails to wrap Java 17 JARs
Eirik Bakke created NETBEANSINFRA-263: - Summary: NetBeans Module plugin fails to wrap Java 17 JARs Key: NETBEANSINFRA-263 URL: https://issues.apache.org/jira/browse/NETBEANSINFRA-263 Project: Apache NetBeans Infra Issue Type: Bug Components: MU - Apache NetBeans NBM maven plugin Environment: OpenJDK 17.0.2 Reporter: Eirik Bakke Attachments: pom.xml The nbm-maven-plugin seems to have trouble wrapping JARs that have Java 17 level class files in them. To reproduce, create an empty folder containing the attached pom.xml file and run "mvn install". The following error appears: "Failed to execute goal org.apache.netbeans.utilities:nbm-maven-plugin:4.6:manifest (default-manifest) on project jdbc-mssql: Execution default-manifest of goal org.apache.netbeans.utilities:nbm-maven-plugin:4.6:manifest failed: Unsupported class file major version 61 -> [Help 1]" Changing the external JAR version from 10.2.0.jre17 to 10.2.0.jre11 makes the build succeed. (Per the readme on https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin , and since this is a different JIRA project, submitting this bug via JIRA rather than on GitHub.) -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated (09075dc -> 14b5836)
This is an automated email from the ASF dual-hosted git repository. lkishalmi pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git. from 09075dc Merge pull request #3654 from ppisl/NETBEANS-6463 add 14b5836 Gradle Tooling Upgrade to 7.4 No new revisions were added by this update. Summary of changes: extide/gradle/build.xml| 2 +- extide/gradle/external/binaries-list | 2 +- extide/gradle/external/gradle-7.3-bin-notice.txt | 1 - ...-bin-license.txt => gradle-7.4-bin-license.txt} | 2 +- .../gradle/external/gradle-7.4-bin-notice.txt | 0 ...-license.txt => gradle-wrapper-7.4-license.txt} | 2 +- extide/gradle/nbproject/project.xml| 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- extide/libs.gradle/external/binaries-list | 2 +- ...ense.txt => gradle-tooling-api-7.4-license.txt} | 4 +-- ...otice.txt => gradle-tooling-api-7.4-notice.txt} | 4 +-- extide/libs.gradle/manifest.mf | 2 +- extide/libs.gradle/nbproject/project.properties| 2 +- extide/libs.gradle/nbproject/project.xml | 2 +- .../org/netbeans/nbbuild/extlibs/ignored-overlaps | 38 ++ 15 files changed, 32 insertions(+), 35 deletions(-) delete mode 100644 extide/gradle/external/gradle-7.3-bin-notice.txt rename extide/gradle/external/{gradle-7.3-bin-license.txt => gradle-7.4-bin-license.txt} (99%) copy php/php.smarty/src/org/netbeans/modules/php/smarty/resources/TplTemplate.tpl => extide/gradle/external/gradle-7.4-bin-notice.txt (100%) rename extide/gradle/external/{gradle-wrapper-7.3-license.txt => gradle-wrapper-7.4-license.txt} (99%) rename extide/libs.gradle/external/{gradle-tooling-api-7.3-license.txt => gradle-tooling-api-7.4-license.txt} (99%) rename extide/libs.gradle/external/{gradle-tooling-api-7.3-notice.txt => gradle-tooling-api-7.4-notice.txt} (73%) - 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-6470) WE HAVE MOVED TO GITHUB ISSUES
Neil C Smith created NETBEANS-6470: -- Summary: WE HAVE MOVED TO GITHUB ISSUES Key: NETBEANS-6470 URL: https://issues.apache.org/jira/browse/NETBEANS-6470 Project: NetBeans Issue Type: Bug Reporter: Neil C Smith Hello, We no longer use JIRA for issue tracking. Please use GitHub Issues instead. https://github.com/apache/netbeans/issues JIRA is just an archive for old issues. You can no longer create new issues. You can still comment on old issues, but you can't expect a response. If the issue is important to you, please create a new issue at GitHub and include the link to the JIRA issue / discussion. Thanks! -- This message was sent by Atlassian Jira (v8.20.1#820001) - 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
svn commit: r52695 - in /dev/netbeans: netbeans-installers/13/ netbeans-platform/13/ netbeans/13/ netbeans/13/nbms/ netbeans/13/nbms/apisupport/ netbeans/13/nbms/cpplite/ netbeans/13/nbms/enterprise/
Author: neilcsmith Date: Tue Feb 22 12:06:59 2022 New Revision: 52695 Log: Staging Apache NetBeans 13 vote 1 [This commit notification would consist of 207 parts, which exceeds the limit of 50 ones, so it was shortened to the summary.] - 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-6463) Code completion doesn't offer methods from the same class
[ https://issues.apache.org/jira/browse/NETBEANS-6463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17496054#comment-17496054 ] Petr Pisl edited comment on NETBEANS-6463 at 2/22/22, 12:04 PM: Merged in master by [PR#3654|https://github.com/apache/netbeans/pull/3654] was (Author: JIRAUSER282891): Merged in master by PR#3654 > Code completion doesn't offer methods from the same class > - > > Key: NETBEANS-6463 > URL: https://issues.apache.org/jira/browse/NETBEANS-6463 > Project: NetBeans > Issue Type: Bug > Components: groovy - Code >Affects Versions: 12.6 >Reporter: Petr Pisl >Assignee: Petr Pisl >Priority: Major > Labels: editor, groovy, pull-request-available > Fix For: 13 > > Attachments: NoCC1.png, nocc.png > > Time Spent: 20m > Remaining Estimate: 0h > > There is a simple groovy class: > > {code:java} > class NoCCTest { > private String method1() { > return "Ahoj" > } > > private void method2() { > String a = meth|od1() > } > } {code} > Char `|` indicates curret position. When you invoke code completion at this > position, there are no suggestions. See the picture !nocc.png! > When you write `this.` before method name, then the cc is resolved correctly: > !NoCC1.png! > -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Resolved] (NETBEANS-6463) Code completion doesn't offer methods from the same class
[ https://issues.apache.org/jira/browse/NETBEANS-6463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petr Pisl resolved NETBEANS-6463. - Fix Version/s: 13 Resolution: Fixed Merged in master by PR#3654 > Code completion doesn't offer methods from the same class > - > > Key: NETBEANS-6463 > URL: https://issues.apache.org/jira/browse/NETBEANS-6463 > Project: NetBeans > Issue Type: Bug > Components: groovy - Code >Affects Versions: 12.6 >Reporter: Petr Pisl >Assignee: Petr Pisl >Priority: Major > Labels: editor, groovy, pull-request-available > Fix For: 13 > > Attachments: NoCC1.png, nocc.png > > Time Spent: 20m > Remaining Estimate: 0h > > There is a simple groovy class: > > {code:java} > class NoCCTest { > private String method1() { > return "Ahoj" > } > > private void method2() { > String a = meth|od1() > } > } {code} > Char `|` indicates curret position. When you invoke code completion at this > position, there are no suggestions. See the picture !nocc.png! > When you write `this.` before method name, then the cc is resolved correctly: > !NoCC1.png! > -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated: [NETBEANS-6463] Code completion doesn't offer methods from the same class
This is an automated email from the ASF dual-hosted git repository. ppisl pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new 0431b53 [NETBEANS-6463] Code completion doesn't offer methods from the same class new 09075dc Merge pull request #3654 from ppisl/NETBEANS-6463 0431b53 is described below commit 0431b53a7c0c0ebd56bcb8bb334b98e9687953c4 Author: Petr Pisl AuthorDate: Mon Feb 21 16:03:17 2022 +0100 [NETBEANS-6463] Code completion doesn't offer methods from the same class --- .../api/completion/util/CompletionContext.java | 14 +++- .../groovy/editor/completion/MethodCompletion.java | 2 +- ...Closure1.groovy.testInsideClosure1_1.completion | 86 ++ ...Closure1.groovy.testInsideClosure1_2.completion | 10 ++- ...Closure1.groovy.testInsideClosure1_3.completion | 5 ++ ...Closure1.groovy.testInsideClosure1_5.completion | 8 ++ ...Closure1.groovy.testInsideClosure1_6.completion | 1 + ...Closure1.groovy.testInsideClosure1_7.completion | 10 ++- .../completionNoDot2/CompletionNoDot2.groovy | 35 + ...NoDot2.groovy.testCompletionNoDot2_1.completion | 6 ++ ...NoDot2.groovy.testCompletionNoDot2_2.completion | 6 ++ ...NoDot2.groovy.testCompletionNoDot2_3.completion | 8 ++ ...NoDot2.groovy.testCompletionNoDot2_4.completion | 9 +++ ...NoDot2.groovy.testCompletionNoDot2_5.completion | 9 +++ ...NoDot2.groovy.testCompletionNoDot2_6.completion | 9 +++ .../groovy/editor/api/completion/MethodCCTest.java | 25 +++ 16 files changed, 237 insertions(+), 6 deletions(-) diff --git a/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/api/completion/util/CompletionContext.java b/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/api/completion/util/CompletionContext.java index ff67316..e407a82 100644 --- a/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/api/completion/util/CompletionContext.java +++ b/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/api/completion/util/CompletionContext.java @@ -36,6 +36,7 @@ import org.codehaus.groovy.ast.expr.ListExpression; import org.codehaus.groovy.ast.expr.NamedArgumentListExpression; import org.codehaus.groovy.ast.expr.RangeExpression; import org.codehaus.groovy.ast.expr.VariableExpression; +import org.codehaus.groovy.ast.stmt.BlockStatement; import org.netbeans.api.lexer.Token; import org.netbeans.api.lexer.TokenSequence; import org.netbeans.editor.BaseDocument; @@ -284,7 +285,8 @@ public final class CompletionContext { if (t.id() == GroovyTokenId.LITERAL_package) { return CaretLocation.ABOVE_PACKAGE; -} else if (t.id() == GroovyTokenId.LITERAL_class || t.id() == GroovyTokenId.LITERAL_def) { +} else if (t.id() == GroovyTokenId.LITERAL_class || t.id() == GroovyTokenId.LITERAL_def +|| t.id() == GroovyTokenId.LPAREN || t.id() == GroovyTokenId.LBRACE) { break; } } @@ -431,6 +433,8 @@ public final class CompletionContext { */ +boolean insideBlock = false; // we need to distinquish, whether are we inside + // a method or in method declaration part for (Iterator it = path.iterator(); it.hasNext();) { ASTNode current = it.next(); if (current instanceof ClosureExpression) { @@ -441,7 +445,11 @@ public final class CompletionContext { return CaretLocation.INSIDE_CLOSURE; } } else if (current instanceof MethodNode) { -return CaretLocation.INSIDE_METHOD; +if (insideBlock) { +return CaretLocation.INSIDE_METHOD; +} +} else if (current instanceof BlockStatement) { +insideBlock = true; } else if (current instanceof ClassNode) { return CaretLocation.INSIDE_CLASS; } else if (current instanceof ModuleNode) { @@ -774,7 +782,7 @@ public final class CompletionContext { DotCompletionContext dotCompletionContext = getDotCompletionContext(); // FIXME static/script context... -if (!isBehindDot() && context.before1 == null +if (!isBehindDot() && (context.before1 == null || location == CaretLocation.INSIDE_METHOD) && (location == CaretLocation.INSIDE_CLOSURE || location == CaretLocation.INSIDE_METHOD)) { ASTNode an = ContextHelper.getSurroundingClassMember(this); boolean st = diff --git a/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/completion/MethodCompletion.java b/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/completion/MethodCompletion.java index 054b861..be8717a 100644 --- a/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/completion/Method
svn commit: r52694 - /dev/netbeans/netbeans-maven-utilities/nbm-maven-plugin/nbm-maven-plugin-4.7/ /release/netbeans/netbeans-maven-utilities/nbm-maven-plugin/nbm-maven-plugin-4.6/ /release/netbeans/n
Author: skygo Date: Tue Feb 22 11:12:09 2022 New Revision: 52694 Log: release Apache NetBeans nbm-maven-plugin 4.7 Added: release/netbeans/netbeans-maven-utilities/nbm-maven-plugin/nbm-maven-plugin-4.7/ - copied from r52693, dev/netbeans/netbeans-maven-utilities/nbm-maven-plugin/nbm-maven-plugin-4.7/ Removed: dev/netbeans/netbeans-maven-utilities/nbm-maven-plugin/nbm-maven-plugin-4.7/ release/netbeans/netbeans-maven-utilities/nbm-maven-plugin/nbm-maven-plugin-4.6/ - 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
svn commit: r52693 - /dev/netbeans/netbeans-installers/12.6/
Author: neilcsmith Date: Tue Feb 22 11:00:54 2022 New Revision: 52693 Log: Remove NetBeans 12.6 macOS installer voting artefacts Removed: dev/netbeans/netbeans-installers/12.6/ - 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