[jira] [Resolved] (NETBEANS-4171) Gradle issue in Netbeans, creating a basic gadle project in Netbeans 11.3
[ https://issues.apache.org/jira/browse/NETBEANS-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jaroslav Tulach resolved NETBEANS-4171. --- Fix Version/s: 12.6 Assignee: Jaroslav Tulach Resolution: Fixed Since [PR-3084|https://github.com/apache/netbeans/pull/3084] the new project functionality is using {{gradlew init}} - e.g. the generated project should match Gradle 7.0 standards. Certainly it is worth to check the behavior in 12.6 development builds. > Gradle issue in Netbeans, creating a basic gadle project in Netbeans 11.3 > - > > Key: NETBEANS-4171 > URL: https://issues.apache.org/jira/browse/NETBEANS-4171 > Project: NetBeans > Issue Type: Bug > Environment: Windows 10 Prof. >Reporter: Fahad >Assignee: Jaroslav Tulach >Priority: Major > Fix For: 12.6 > > > After creating a new gradle project in NetBeans 11.3, I get the following > error while trying to edit the build.gradle file. > > java.lang.NoClassDefFoundError: Could not initialize class > org.codehaus.groovy.classgen.Verifier > at > org.codehaus.groovy.control.CompilationUnit.(CompilationUnit.java:170) > at > org.netbeans.modules.groovy.editor.compiler.CompilationUnit.(CompilationUnit.java:64) > at > org.netbeans.modules.groovy.editor.api.parser.GroovyParser.parseBuffer(GroovyParser.java:441) > at > org.netbeans.modules.groovy.editor.api.parser.GroovyParser.parse(GroovyParser.java:137) > at > org.netbeans.modules.parsing.impl.TaskProcessor.callParse(TaskProcessor.java:598) > at > org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:228) > at > org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775) > at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) > at > org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702) > [catch] at > org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663) > at > java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) > at > org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) > at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) > at > org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4171) Gradle issue in Netbeans, creating a basic gradle project in Netbeans 11.3
[ https://issues.apache.org/jira/browse/NETBEANS-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jaroslav Tulach updated NETBEANS-4171: -- Summary: Gradle issue in Netbeans, creating a basic gradle project in Netbeans 11.3 (was: Gradle issue in Netbeans, creating a basic gadle project in Netbeans 11.3) > Gradle issue in Netbeans, creating a basic gradle project in Netbeans 11.3 > -- > > Key: NETBEANS-4171 > URL: https://issues.apache.org/jira/browse/NETBEANS-4171 > Project: NetBeans > Issue Type: Bug > Environment: Windows 10 Prof. >Reporter: Fahad >Assignee: Jaroslav Tulach >Priority: Major > Fix For: 12.6 > > > After creating a new gradle project in NetBeans 11.3, I get the following > error while trying to edit the build.gradle file. > > java.lang.NoClassDefFoundError: Could not initialize class > org.codehaus.groovy.classgen.Verifier > at > org.codehaus.groovy.control.CompilationUnit.(CompilationUnit.java:170) > at > org.netbeans.modules.groovy.editor.compiler.CompilationUnit.(CompilationUnit.java:64) > at > org.netbeans.modules.groovy.editor.api.parser.GroovyParser.parseBuffer(GroovyParser.java:441) > at > org.netbeans.modules.groovy.editor.api.parser.GroovyParser.parse(GroovyParser.java:137) > at > org.netbeans.modules.parsing.impl.TaskProcessor.callParse(TaskProcessor.java:598) > at > org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:228) > at > org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775) > at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) > at > org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702) > [catch] at > org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663) > at > java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) > at > org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) > at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) > at > org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-5989) NPE when browsing files with JSON annotations
[ https://issues.apache.org/jira/browse/NETBEANS-5989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Junichi Yamamoto updated NETBEANS-5989: --- Component/s: (was: cnd - Editor) java - Editor > NPE when browsing files with JSON annotations > - > > Key: NETBEANS-5989 > URL: https://issues.apache.org/jira/browse/NETBEANS-5989 > Project: NetBeans > Issue Type: Bug > Components: java - Editor >Affects Versions: 12.3 > Environment: MAC OSX: 10.15.7 (19H1323) > 64 GB RAM - 2.0 TB SSD > >Reporter: Brenden Anderle >Priority: Major > Attachments: ErrorReport_2021sep08-first-1100lines.txt > > > [Update] Just noticed that first line of class file is empty - blank line > before the package declaration. I edited the files to remove the blank lines > in another editor and they opened without issues. > > When opening Java source files (generated by jsonschema2pojo) the compiler > displays multiple errors, claims duplicate class exists among other things, > and the Null Pointer Exception is shown in the Notifications. Sample code > below. Please see attached error report - note that it is too large for the > entire report, only first 1100 lines shown. > > package io.yaxche.openproject.rest; > import java.util.HashMap; > import java.util.Map; > import javax.annotation.Generated; > import com.fasterxml.jackson.annotation.JsonAnyGetter; > import com.fasterxml.jackson.annotation.JsonAnySetter; > import com.fasterxml.jackson.annotation.JsonIgnore; > import com.fasterxml.jackson.annotation.JsonInclude; > import com.fasterxml.jackson.annotation.JsonProperty; > import com.fasterxml.jackson.annotation.JsonPropertyOrder; > @JsonInclude(JsonInclude.Include.NON_NULL) > @JsonPropertyOrder( > { "format", "raw", "html" } > ) > @Generated("jsonschema2pojo") > public class Description { -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-5989) NPE when browsing files with JSON annotations
[ https://issues.apache.org/jira/browse/NETBEANS-5989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brenden Anderle updated NETBEANS-5989: -- Description: [Update] Just noticed that first line of class file is empty - blank line before the package declaration. I edited the files to remove the blank lines in another editor and they opened without issues. When opening Java source files (generated by jsonschema2pojo) the compiler displays multiple errors, claims duplicate class exists among other things, and the Null Pointer Exception is shown in the Notifications. Sample code below. Please see attached error report - note that it is too large for the entire report, only first 1100 lines shown. package io.yaxche.openproject.rest; import java.util.HashMap; import java.util.Map; import javax.annotation.Generated; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder( { "format", "raw", "html" } ) @Generated("jsonschema2pojo") public class Description { was: When opening Java source files (generated by jsonschema2pojo) the compiler displays multiple errors, claims duplicate class exists among other things, and the Null Pointer Exception is shown in the Notifications. Sample code below. Please see attached error report - note that it is too large for the entire report, only first 1100 lines shown. package io.yaxche.openproject.rest; import java.util.HashMap; import java.util.Map; import javax.annotation.Generated; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "format", "raw", "html" }) @Generated("jsonschema2pojo") public class Description { > NPE when browsing files with JSON annotations > - > > Key: NETBEANS-5989 > URL: https://issues.apache.org/jira/browse/NETBEANS-5989 > Project: NetBeans > Issue Type: Bug > Components: cnd - Editor >Affects Versions: 12.3 > Environment: MAC OSX: 10.15.7 (19H1323) > 64 GB RAM - 2.0 TB SSD > >Reporter: Brenden Anderle >Priority: Major > Attachments: ErrorReport_2021sep08-first-1100lines.txt > > > [Update] Just noticed that first line of class file is empty - blank line > before the package declaration. I edited the files to remove the blank lines > in another editor and they opened without issues. > > When opening Java source files (generated by jsonschema2pojo) the compiler > displays multiple errors, claims duplicate class exists among other things, > and the Null Pointer Exception is shown in the Notifications. Sample code > below. Please see attached error report - note that it is too large for the > entire report, only first 1100 lines shown. > > package io.yaxche.openproject.rest; > import java.util.HashMap; > import java.util.Map; > import javax.annotation.Generated; > import com.fasterxml.jackson.annotation.JsonAnyGetter; > import com.fasterxml.jackson.annotation.JsonAnySetter; > import com.fasterxml.jackson.annotation.JsonIgnore; > import com.fasterxml.jackson.annotation.JsonInclude; > import com.fasterxml.jackson.annotation.JsonProperty; > import com.fasterxml.jackson.annotation.JsonPropertyOrder; > @JsonInclude(JsonInclude.Include.NON_NULL) > @JsonPropertyOrder( > { "format", "raw", "html" } > ) > @Generated("jsonschema2pojo") > public class Description { -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-5989) NPE when browsing files with JSON annotations
Brenden Anderle created NETBEANS-5989: - Summary: NPE when browsing files with JSON annotations Key: NETBEANS-5989 URL: https://issues.apache.org/jira/browse/NETBEANS-5989 Project: NetBeans Issue Type: Bug Components: cnd - Editor Affects Versions: 12.3 Environment: MAC OSX: 10.15.7 (19H1323) 64 GB RAM - 2.0 TB SSD Reporter: Brenden Anderle Attachments: ErrorReport_2021sep08-first-1100lines.txt When opening Java source files (generated by jsonschema2pojo) the compiler displays multiple errors, claims duplicate class exists among other things, and the Null Pointer Exception is shown in the Notifications. Sample code below. Please see attached error report - note that it is too large for the entire report, only first 1100 lines shown. package io.yaxche.openproject.rest; import java.util.HashMap; import java.util.Map; import javax.annotation.Generated; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "format", "raw", "html" }) @Generated("jsonschema2pojo") public class Description { -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-5988) Print fungerar inte om man anväder Scanner
Lars Bogren created NETBEANS-5988: - Summary: Print fungerar inte om man anväder Scanner Key: NETBEANS-5988 URL: https://issues.apache.org/jira/browse/NETBEANS-5988 Project: NetBeans Issue Type: Bug Environment: netbeans Reporter: Lars Bogren import java.util.*; public class Addition { public static void main(String[] args) { // create a Sanner to obtain input from the commad window Scanner input = new Scanner(System.in); System.out.print("Enter first integer: "); //promt int number1 = input.nextInt(); //read first number from user System.out.print("Enter second integer: "); //promt int number2 = input.nextInt(); //read first number from user int sum = number1 + number2; //add numbers, total in sum System.out.printf("Sum = %d%n", sum); // display sum }// end method main }// end class Addition Detta print sats fungerar inte utan texten kommer efter båda inmatningarna -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
svn commit: r49829 - in /dev/netbeans: netbeans-platform/12.5/ netbeans/12.5/ netbeans/12.5/nbms/ netbeans/12.5/nbms/apisupport/ netbeans/12.5/nbms/cpplite/ netbeans/12.5/nbms/enterprise/ netbeans/12.
Author: skygo Date: Wed Sep 8 16:50:09 2021 New Revision: 49829 Log: Apache NetBeans 12.5. [This commit notification would consist of 202 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] [Created] (NETBEANS-5987) Change @MIMEResolver.ExtensionRegistration annotation to repeatable.
Ondřej Douda created NETBEANS-5987: -- Summary: Change @MIMEResolver.ExtensionRegistration annotation to repeatable. Key: NETBEANS-5987 URL: https://issues.apache.org/jira/browse/NETBEANS-5987 Project: NetBeans Issue Type: Improvement Components: platform - Filesystems Reporter: Ondřej Douda @MIMEResolver.ExtensionRegistration annotation cannot be used multiple times to register MIME types, this forces to create separate file for each MIME type registration. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-5983) Static type analysis does not consider instanceof type hint
[ https://issues.apache.org/jira/browse/NETBEANS-5983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17411945#comment-17411945 ] Svatopluk Dedic commented on NETBEANS-5983: --- Attached sample groovy script that fails to compile although type should be inferred according to http://groovy-lang.org/semantics.html#_instanceof_inference > Static type analysis does not consider instanceof type hint > --- > > Key: NETBEANS-5983 > URL: https://issues.apache.org/jira/browse/NETBEANS-5983 > Project: NetBeans > Issue Type: Bug > Components: groovy - Editor >Reporter: Svatopluk Dedic >Priority: Major > Attachments: T.groovy > > > Consider code like > {code:java} > public BindingHolder(BindingHolder parent, Object value) { >if(value instanceof List) { > def instance = value[0]; // ERROR > ... >} > } > {code} > whent the editor parser uses static type analysis, it will report an error on > the marker line, as *vlaue* is typed as *java.lang.Object*, which has no > *get()* method. > In this specific case, the subtree can be evaluated speculatively, supposing > that *value* is instance of *List* - requires partial evaluation of > if-conditions. Similar case when typecast precedes reference to an identifier. > This must be probably fixed in Groovy; in NetBeans we can block the message > and try to re-evaluate the AST subtree with a speculative type(s) found on > path(s) to the code. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-5983) Static type analysis does not consider instanceof type hint
[ https://issues.apache.org/jira/browse/NETBEANS-5983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Svatopluk Dedic updated NETBEANS-5983: -- Attachment: T.groovy > Static type analysis does not consider instanceof type hint > --- > > Key: NETBEANS-5983 > URL: https://issues.apache.org/jira/browse/NETBEANS-5983 > Project: NetBeans > Issue Type: Bug > Components: groovy - Editor >Reporter: Svatopluk Dedic >Priority: Major > Attachments: T.groovy > > > Consider code like > {code:java} > public BindingHolder(BindingHolder parent, Object value) { >if(value instanceof List) { > def instance = value[0]; // ERROR > ... >} > } > {code} > whent the editor parser uses static type analysis, it will report an error on > the marker line, as *vlaue* is typed as *java.lang.Object*, which has no > *get()* method. > In this specific case, the subtree can be evaluated speculatively, supposing > that *value* is instance of *List* - requires partial evaluation of > if-conditions. Similar case when typecast precedes reference to an identifier. > This must be probably fixed in Groovy; in NetBeans we can block the message > and try to re-evaluate the AST subtree with a speculative type(s) found on > path(s) to the code. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans-jenkins-lib] branch master updated: vote candidate 12.5
This is an automated email from the ASF dual-hosted git repository. skygo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans-jenkins-lib.git The following commit(s) were added to refs/heads/master by this push: new a0c9905 vote candidate 12.5 a0c9905 is described below commit a0c99050c7de781e38cb791f7b1828651a5760f6 Author: Eric Barboni AuthorDate: Wed Sep 8 15:28:07 2021 +0200 vote candidate 12.5 --- meta/netbeansrelease.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/netbeansrelease.json b/meta/netbeansrelease.json index 3f4b8df..e635aa8 100644 --- a/meta/netbeansrelease.json +++ b/meta/netbeansrelease.json @@ -491,7 +491,7 @@ "position": "2" }, "fd523ddc12d6156412d7b81f0c8663d8913d1021": { -"version": "beta3", +"vote": "1", "position": "3" } }, - 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