[jira] [Assigned] (NETBEANS-4741) nb-javac plugin install through NB Installer

2020-09-23 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha reassigned NETBEANS-4741:
---

Assignee: Akhilesh Singh  (was: Arunava Sinha)

> nb-javac plugin install through NB Installer
> 
>
> Key: NETBEANS-4741
> URL: https://issues.apache.org/jira/browse/NETBEANS-4741
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: Arunava Sinha
>Assignee: Akhilesh Singh
>Priority: Major
>
> Currently after successful run of NB installer, once IDE open it shows a 
> popup recommending installation of nb-javac plugin.
> The proposed task wants to move the step out from IDE and during run of 
> installer option to whether to download and install of nb-javac will appear.
> If someone decide not to install nb-javac during run of installer , he/she 
> can still install the same by selecting nb-javac plugin from plugin portal.



--
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] [Assigned] (NETBEANS-4447) NullPointerException while computing switch expression conversion.

2020-09-23 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha reassigned NETBEANS-4447:
---

Assignee: SARILLA MOHANARAO  (was: Arunava Sinha)

> NullPointerException while computing switch expression conversion.
> --
>
> Key: NETBEANS-4447
> URL: https://issues.apache.org/jira/browse/NETBEANS-4447
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Hints
>Reporter: Jan Lahoda
>Assignee: SARILLA MOHANARAO
>Priority: Major
>
> Consider this code:
>  
> {code:java}
> package pkgswitch.expr;
> public class SwitchExpr {
> public static void main(String[] args) {
> String result;
> switch (args.length) {
> case 0: result = "a"; break;
> default: System.err.println("No."); break;
> }
> }
> }
> {code}
>  
> The ConvertSwitchToRuleSwitch hint fails with:
> {code:java}
> java.lang.NullPointerException
>   at 
> jdk.compiler/com.sun.tools.javac.util.Name.contentEquals(Name.java:54)
>   at 
> org.netbeans.modules.java.hints.errors.Utilities.isCompatibleWithSwitchExpression(Utilities.java:3155)
>   at 
> org.netbeans.modules.java.hints.jdk.ConvertSwitchToRuleSwitch.switch2RuleSwitch(ConvertSwitchToRuleSwitch.java:74)
>   at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>   at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.base/java.lang.reflect.Method.invoke(Method.java:564)
> [catch] at 
> org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:317)
>   at 
> org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:798)
>   at 
> org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.access$400(HintsInvoker.java:90)
>   at 
> org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.runAndAdd(HintsInvoker.java:657)
>   at 
> org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:676)
>   at 
> org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:610)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitBlock(TreeScanner.java:250)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1059)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
>   at 
> org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:682)
>   at 
> org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:610)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitMethod(TreeScanner.java:208)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:925)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
>   at 
> org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:682)
>   at 
> org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:610)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
>   at 
> org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
>   at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:189)
>   at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:832)
>   at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
>   at 
> 

[jira] [Resolved] (NETBEANS-4682) Java Record Formatting issue with use of annotation

2020-09-23 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha resolved NETBEANS-4682.
-
Fix Version/s: 12.2
   Resolution: Fixed

PR link:[https://github.com/apache/netbeans/pull/2391]

> Java Record Formatting issue with use of annotation
> ---
>
> Key: NETBEANS-4682
> URL: https://issues.apache.org/jira/browse/NETBEANS-4682
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Affects Versions: 12.0
>Reporter: Arunava Sinha
>Assignee: Akhilesh Singh
>Priority: Major
> Fix For: 12.2
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>




--
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] [Assigned] (NETBEANS-4682) Java Record Formatting issue with use of annotation

2020-09-21 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha reassigned NETBEANS-4682:
---

Assignee: Akhilesh Singh  (was: Arunava Sinha)

> Java Record Formatting issue with use of annotation
> ---
>
> Key: NETBEANS-4682
> URL: https://issues.apache.org/jira/browse/NETBEANS-4682
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Affects Versions: 12.0
>Reporter: Arunava Sinha
>Assignee: Akhilesh Singh
>Priority: Major
>




--
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-4741) nb-javac plugin install through NB Installer

2020-08-25 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-4741:

Summary: nb-javac plugin install through NB Installer  (was: nb-javac 
plugin install through NB installer)

> nb-javac plugin install through NB Installer
> 
>
> Key: NETBEANS-4741
> URL: https://issues.apache.org/jira/browse/NETBEANS-4741
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>
> Currently after successful run of NB installer, once IDE open it shows a 
> popup recommending installation of nb-javac plugin.
> The proposed task wants to move the step out from IDE and during run of 
> installer option to whether to download and install of nb-javac will appear.
> If someone decide not to install nb-javac during run of installer , he/she 
> can still install the same by selecting nb-javac plugin from plugin portal.



--
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-4741) nb-javac plugin install through NB installer

2020-08-25 Thread Arunava Sinha (Jira)
Arunava Sinha created NETBEANS-4741:
---

 Summary: nb-javac plugin install through NB installer
 Key: NETBEANS-4741
 URL: https://issues.apache.org/jira/browse/NETBEANS-4741
 Project: NetBeans
  Issue Type: Improvement
Reporter: Arunava Sinha
Assignee: Arunava Sinha


Currently after successful run of NB installer, once IDE open it shows a popup 
recommending installation of nb-javac plugin.

The proposed task wants to move the step out from IDE and during run of 
installer option to whether to download and install of nb-javac will appear.

If someone decide not to install nb-javac during run of installer , he/she can 
still install the same by selecting nb-javac plugin from plugin portal.



--
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] [Assigned] (NETBEANS-4062) Unable to import Records from other package

2020-08-24 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha reassigned NETBEANS-4062:
---

Assignee: Akhilesh Singh  (was: Arunava Sinha)

> Unable to import Records from other package
> ---
>
> Key: NETBEANS-4062
> URL: https://issues.apache.org/jira/browse/NETBEANS-4062
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.3
>Reporter: Julian Jupiter
>Assignee: Akhilesh Singh
>Priority: Minor
>  Labels: Java14, records
>  Time Spent: 50m
>  Remaining Estimate: 0h
>
> NetBeans can't import records from other package. It instead suggests to 
> create a class.
> It has to be imported manually. Even importing manually does not work 
> smoothly coz after hitting dot, records do not show up but other classes do. 
> There is no choice but to type it in explicitly.
> Steps to reproduce:
>  # Create a record in a package, e.g. `records.Person.java`.
>  # Create main class in another package, e.g. `app.PersonApp.java`.
>  # In `PersonApp`, type in `var person = new Person();`. Using content 
> assist/auto-suggestion does not display Person.
>  # Manually type: `import records.` and using content assist does not display 
> Person. Other classes, if any, do display, though. So, instead of relying on 
> suggestion, just type it explicitly: `import records.Person;`.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Resolved] (NETBEANS-4311) Support for AutoComplete inside Records

2020-08-12 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha resolved NETBEANS-4311.
-
Resolution: Fixed

Record auto-completed has been completed through below PR

[https://github.com/apache/netbeans/pull/]

> Support for AutoComplete inside Records
> ---
>
> Key: NETBEANS-4311
> URL: https://issues.apache.org/jira/browse/NETBEANS-4311
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Affects Versions: 11.3
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>  Labels: Java14, record
> Fix For: Next
>
>  Time Spent: 3h
>  Remaining Estimate: 0h
>
> Records was introduced in Jdk-14.
> Currently NB doesn't support fully autocomplete inside Record.
> This issue will try to address all auto-complete requirements in Records



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Resolved] (NETBEANS-4391) Scope is wrong for ClassTree representing record in JDK-14

2020-08-12 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha resolved NETBEANS-4391.
-
Resolution: Fixed

fix has been incorporated in nb-javac for 14

> Scope is wrong for ClassTree representing record in JDK-14
> --
>
> Key: NETBEANS-4391
> URL: https://issues.apache.org/jira/browse/NETBEANS-4391
> Project: NetBeans
>  Issue Type: Bug
>  Components: cnd - Editor
>Affects Versions: Next
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
> Fix For: 12.1
>
>
> This is an issue observed in new RECORD feature that's added
> e.g.
> record Rec( | ) \{ }
> When trying to retrieve the scope inside the record at position marked by '|'.
> Expecting X,Y to be the part of the scope, but the scope doesn't return those 
> elements.
> Maybe there is a change needed in nb-javac :
> jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTrees.java
> Issue is also present in jdk-14 javac and  is already reported there. Fix 
> will be available in jdk-15 release



--
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-4095) NPE saving Java file with type error in for-each

2020-08-06 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-4095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17172073#comment-17172073
 ] 

Arunava Sinha commented on NETBEANS-4095:
-

Currently we don't have unit-test for the fix.

We are planning for creating test-suite  for nb-javac, We will be able to 
provide unit-test for fixes in near future

> NPE saving Java file with type error in for-each
> 
>
> Key: NETBEANS-4095
> URL: https://issues.apache.org/jira/browse/NETBEANS-4095
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Affects Versions: 11.3
> Environment: Java 14, NetBeans with nbjavac plugin installed
>Reporter: Eirik Bakke
>Assignee: Arunava Sinha
>Priority: Major
>  Labels: nbjavac
> Fix For: 12.1
>
>
> If, during editing, a for-each loop appears with an incorrect pair of types, 
> an error dialog shows up showing a NullPointerException every time the Java 
> source file is saved, interrupting the user. A minimized example exhibiting 
> this behavior is as follows:
> {code:java}
> public final class CausesVisitIterableForeachLoopNPE {
>   public static final void main(String args[]) {
> final Map someMap = null;
> for (Object someVar : someMap) { }
>   }
> }
> {code}
> This example causes the IDE to throw the following exception:
> {noformat}
> java.lang.NullPointerException
>   at 
> com.sun.tools.javac.comp.Lower.visitIterableForeachLoop(Lower.java:3275)
>   at com.sun.tools.javac.comp.Lower.visitForeachLoop(Lower.java:3162)
>   at 
> com.sun.tools.javac.tree.JCTree$JCEnhancedForLoop.accept(JCTree.java:1176)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:70)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.visitBlock(TreeTranslator.java:167)
>   at com.sun.tools.javac.comp.Lower.visitBlock(Lower.java:3347)
>   at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1036)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.visitMethodDef(TreeTranslator.java:150)
>   at 
> com.sun.tools.javac.comp.Lower.visitMethodDefInternal(Lower.java:2538)
>   at com.sun.tools.javac.comp.Lower.visitMethodDef(Lower.java:2448)
>   at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:882)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at com.sun.tools.javac.comp.Lower.visitClassDef(Lower.java:2219)
>   at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:788)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2099)
>   at 
> com.sun.tools.javac.comp.Lower.translateTopLevelClass(Lower.java:3813)
>   at com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1691)
>   at com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1532)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl$2.process(JavacTaskImpl.java:574)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl$Filter.run(JavacTaskImpl.java:651)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl.generate(JavacTaskImpl.java:577)
> [catch] at 
> org.netbeans.modules.java.source.nbjavac.indexing.MultiPassCompileWorker.compile(MultiPassCompileWorker.java:303)
>   at 
> org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:361)
>   at 
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:138)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:275)
>   at 
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:136)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:2750)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.access$800(RepositoryUpdater.java:2154)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2636)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2634)
>   at 
> org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.refreshTransaction(TaskCache.java:540)
>   at 
> 

[jira] [Resolved] (NETBEANS-3965) Source code "var" issue

2020-08-04 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha resolved NETBEANS-3965.
-
Resolution: Fixed

Issue was fixed with merge of nb-javac for 14

PR link:

[https://github.com/apache/netbeans/pull/2277]

> Source code "var" issue
> ---
>
> Key: NETBEANS-3965
> URL: https://issues.apache.org/jira/browse/NETBEANS-3965
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Compiler, java - Editor, platform - Action Items
>Affects Versions: 12.0, 11.2, 11.3
> Environment: Apache Netbeans
> OpenJDK 11.0.2
> Gradle 6.4.1
>Reporter: Netbeans User 2019
>Assignee: Arunava Sinha
>Priority: Minor
>  Labels: compile-error
>
> var File[] = file.list();
> on editor: do no show any issue
> on action items: there is no issue visible about that
> on gradle: fails in compile
> on old-style project (Java with Ant > Java Application): run without issue, 
> but if you explicitly try build you get "error: 'var' is not allowed as an 
> element type of an array



--
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-3965) Source code "var" issue

2020-08-04 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-3965:

Fix Version/s: 12.1

> Source code "var" issue
> ---
>
> Key: NETBEANS-3965
> URL: https://issues.apache.org/jira/browse/NETBEANS-3965
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Compiler, java - Editor, platform - Action Items
>Affects Versions: 12.0, 11.2, 11.3
> Environment: Apache Netbeans
> OpenJDK 11.0.2
> Gradle 6.4.1
>Reporter: Netbeans User 2019
>Assignee: Arunava Sinha
>Priority: Minor
>  Labels: compile-error
> Fix For: 12.1
>
>
> var File[] = file.list();
> on editor: do no show any issue
> on action items: there is no issue visible about that
> on gradle: fails in compile
> on old-style project (Java with Ant > Java Application): run without issue, 
> but if you explicitly try build you get "error: 'var' is not allowed as an 
> element type of an array



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Resolved] (NETBEANS-4095) NPE saving Java file with type error in for-each

2020-08-04 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha resolved NETBEANS-4095.
-
Resolution: Fixed

Issue was fixed with merge of nb-javac for 14

PR link:

[https://github.com/apache/netbeans/pull/2277]

> NPE saving Java file with type error in for-each
> 
>
> Key: NETBEANS-4095
> URL: https://issues.apache.org/jira/browse/NETBEANS-4095
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Affects Versions: 11.3
> Environment: Java 14, NetBeans with nbjavac plugin installed
>Reporter: Eirik Bakke
>Assignee: Arunava Sinha
>Priority: Major
>  Labels: nbjavac
>
> If, during editing, a for-each loop appears with an incorrect pair of types, 
> an error dialog shows up showing a NullPointerException every time the Java 
> source file is saved, interrupting the user. A minimized example exhibiting 
> this behavior is as follows:
> {code:java}
> public final class CausesVisitIterableForeachLoopNPE {
>   public static final void main(String args[]) {
> final Map someMap = null;
> for (Object someVar : someMap) { }
>   }
> }
> {code}
> This example causes the IDE to throw the following exception:
> {noformat}
> java.lang.NullPointerException
>   at 
> com.sun.tools.javac.comp.Lower.visitIterableForeachLoop(Lower.java:3275)
>   at com.sun.tools.javac.comp.Lower.visitForeachLoop(Lower.java:3162)
>   at 
> com.sun.tools.javac.tree.JCTree$JCEnhancedForLoop.accept(JCTree.java:1176)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:70)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.visitBlock(TreeTranslator.java:167)
>   at com.sun.tools.javac.comp.Lower.visitBlock(Lower.java:3347)
>   at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1036)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.visitMethodDef(TreeTranslator.java:150)
>   at 
> com.sun.tools.javac.comp.Lower.visitMethodDefInternal(Lower.java:2538)
>   at com.sun.tools.javac.comp.Lower.visitMethodDef(Lower.java:2448)
>   at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:882)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at com.sun.tools.javac.comp.Lower.visitClassDef(Lower.java:2219)
>   at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:788)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2099)
>   at 
> com.sun.tools.javac.comp.Lower.translateTopLevelClass(Lower.java:3813)
>   at com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1691)
>   at com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1532)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl$2.process(JavacTaskImpl.java:574)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl$Filter.run(JavacTaskImpl.java:651)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl.generate(JavacTaskImpl.java:577)
> [catch] at 
> org.netbeans.modules.java.source.nbjavac.indexing.MultiPassCompileWorker.compile(MultiPassCompileWorker.java:303)
>   at 
> org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:361)
>   at 
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:138)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:275)
>   at 
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:136)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:2750)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.access$800(RepositoryUpdater.java:2154)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2636)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2634)
>   at 
> org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.refreshTransaction(TaskCache.java:540)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(RepositoryUpdater.java:2634)
>   

[jira] [Updated] (NETBEANS-4095) NPE saving Java file with type error in for-each

2020-08-04 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-4095:

Fix Version/s: 12.1

> NPE saving Java file with type error in for-each
> 
>
> Key: NETBEANS-4095
> URL: https://issues.apache.org/jira/browse/NETBEANS-4095
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Affects Versions: 11.3
> Environment: Java 14, NetBeans with nbjavac plugin installed
>Reporter: Eirik Bakke
>Assignee: Arunava Sinha
>Priority: Major
>  Labels: nbjavac
> Fix For: 12.1
>
>
> If, during editing, a for-each loop appears with an incorrect pair of types, 
> an error dialog shows up showing a NullPointerException every time the Java 
> source file is saved, interrupting the user. A minimized example exhibiting 
> this behavior is as follows:
> {code:java}
> public final class CausesVisitIterableForeachLoopNPE {
>   public static final void main(String args[]) {
> final Map someMap = null;
> for (Object someVar : someMap) { }
>   }
> }
> {code}
> This example causes the IDE to throw the following exception:
> {noformat}
> java.lang.NullPointerException
>   at 
> com.sun.tools.javac.comp.Lower.visitIterableForeachLoop(Lower.java:3275)
>   at com.sun.tools.javac.comp.Lower.visitForeachLoop(Lower.java:3162)
>   at 
> com.sun.tools.javac.tree.JCTree$JCEnhancedForLoop.accept(JCTree.java:1176)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:70)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.visitBlock(TreeTranslator.java:167)
>   at com.sun.tools.javac.comp.Lower.visitBlock(Lower.java:3347)
>   at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1036)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.visitMethodDef(TreeTranslator.java:150)
>   at 
> com.sun.tools.javac.comp.Lower.visitMethodDefInternal(Lower.java:2538)
>   at com.sun.tools.javac.comp.Lower.visitMethodDef(Lower.java:2448)
>   at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:882)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at com.sun.tools.javac.comp.Lower.visitClassDef(Lower.java:2219)
>   at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:788)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2099)
>   at 
> com.sun.tools.javac.comp.Lower.translateTopLevelClass(Lower.java:3813)
>   at com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1691)
>   at com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1532)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl$2.process(JavacTaskImpl.java:574)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl$Filter.run(JavacTaskImpl.java:651)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl.generate(JavacTaskImpl.java:577)
> [catch] at 
> org.netbeans.modules.java.source.nbjavac.indexing.MultiPassCompileWorker.compile(MultiPassCompileWorker.java:303)
>   at 
> org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:361)
>   at 
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:138)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:275)
>   at 
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:136)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:2750)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.access$800(RepositoryUpdater.java:2154)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2636)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2634)
>   at 
> org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.refreshTransaction(TaskCache.java:540)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(RepositoryUpdater.java:2634)
>   at 
> 

[jira] [Updated] (NETBEANS-4391) Scope is wrong for ClassTree representing record in JDK-14

2020-08-04 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-4391:

Fix Version/s: 12.1

> Scope is wrong for ClassTree representing record in JDK-14
> --
>
> Key: NETBEANS-4391
> URL: https://issues.apache.org/jira/browse/NETBEANS-4391
> Project: NetBeans
>  Issue Type: Bug
>  Components: cnd - Editor
>Affects Versions: Next
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
> Fix For: 12.1
>
>
> This is an issue observed in new RECORD feature that's added
> e.g.
> record Rec( | ) \{ }
> When trying to retrieve the scope inside the record at position marked by '|'.
> Expecting X,Y to be the part of the scope, but the scope doesn't return those 
> elements.
> Maybe there is a change needed in nb-javac :
> jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTrees.java
> Issue is also present in jdk-14 javac and  is already reported there. Fix 
> will be available in jdk-15 release



--
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-3825) NB-Javac Upgrade to JDK-14

2020-08-04 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-3825:

Fix Version/s: 12.1

> NB-Javac Upgrade to JDK-14
> --
>
> Key: NETBEANS-3825
> URL: https://issues.apache.org/jira/browse/NETBEANS-3825
> Project: NetBeans
>  Issue Type: Task
>Affects Versions: 12.0
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
> Fix For: 12.1
>
>  Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> NB-11.3, currently is supported by nb-javac for JDK-13 .
> Will upgrade nb-javac  to make it in sync with JDK-14
> nb-javac link:  [https://hg.netbeans.org/main/nb-java-x]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Resolved] (NETBEANS-3825) NB-Javac Upgrade to JDK-14

2020-08-04 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha resolved NETBEANS-3825.
-
Resolution: Fixed

PR link:

[https://github.com/apache/netbeans/pull/2277]

> NB-Javac Upgrade to JDK-14
> --
>
> Key: NETBEANS-3825
> URL: https://issues.apache.org/jira/browse/NETBEANS-3825
> Project: NetBeans
>  Issue Type: Task
>Affects Versions: 12.0
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>  Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> NB-11.3, currently is supported by nb-javac for JDK-13 .
> Will upgrade nb-javac  to make it in sync with JDK-14
> nb-javac link:  [https://hg.netbeans.org/main/nb-java-x]



--
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-4682) Java Record Formatting issue with use of annotation

2020-08-04 Thread Arunava Sinha (Jira)
Arunava Sinha created NETBEANS-4682:
---

 Summary: Java Record Formatting issue with use of annotation
 Key: NETBEANS-4682
 URL: https://issues.apache.org/jira/browse/NETBEANS-4682
 Project: NetBeans
  Issue Type: Bug
  Components: java - Editor
Affects Versions: 12.0
Reporter: Arunava Sinha
Assignee: Arunava Sinha






--
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-4681) Java Record Refactoring Issue

2020-08-04 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-4681:

Affects Version/s: 12.0
   Issue Type: Bug  (was: Improvement)

> Java Record Refactoring Issue
> -
>
> Key: NETBEANS-4681
> URL: https://issues.apache.org/jira/browse/NETBEANS-4681
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 12.0
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>
> Following refactoring features not working with Java Records (JDK-14)
>  # move to
>  # refactor rename 



--
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-4681) Java Record Refactoring Issue

2020-08-04 Thread Arunava Sinha (Jira)
Arunava Sinha created NETBEANS-4681:
---

 Summary: Java Record Refactoring Issue
 Key: NETBEANS-4681
 URL: https://issues.apache.org/jira/browse/NETBEANS-4681
 Project: NetBeans
  Issue Type: Improvement
Reporter: Arunava Sinha
Assignee: Arunava Sinha


Following refactoring features not working with Java Records (JDK-14)
 # move to
 # refactor rename 



--
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] [Closed] (NETBEANS-3616) Support of debug option and enable preview-hint in Single Source File

2020-07-27 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha closed NETBEANS-3616.
---

> Support of debug option and enable preview-hint in Single Source File
> -
>
> Key: NETBEANS-3616
> URL: https://issues.apache.org/jira/browse/NETBEANS-3616
> Project: NetBeans
>  Issue Type: Improvement
>  Components: java - Editor
>Affects Versions: 11.1
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.3
>
>  Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> Need to provide below two features for single source Java file .
> 1. In ant and maven java project , there is a specific hint for enabling 
> preview feature.
> Same is missing in Single source file.
>  
> 2. Currently NB-11.2 supports running of single source file , but debug 
> action is missing
> [https://openjdk.java.net/jeps/330.]



--
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] [Closed] (NETBEANS-3793) Debug of single Source Java File not working in windows

2020-07-27 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha closed NETBEANS-3793.
---

> Debug of single Source Java File not working in windows
> ---
>
> Key: NETBEANS-3793
> URL: https://issues.apache.org/jira/browse/NETBEANS-3793
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: Next
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.3
>
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> Debug of single Source Java File not working in windows
> The issue in related to below bug:
> https://issues.apache.org/jira/browse/NETBEANS-3616



--
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-4502) Option to download nb-javac during NB installation rather than post installation

2020-06-25 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-4502:

Description: 
Currently once user launch NB for the first time, It popup a dialog 
recommending the user to install nb-javac plugin. This hampers the user 
experience as he/she was expecting whatever needed to run NB was already 
completed during NB installation and once he/she launched the IDE it should 
work seamlessly without asking asking of any further installation step.

 

I hereby propose to move the step for installation of nb-javac plugin to 
Netbeans installer.

On run of installer, there can an option to ask  to installs nb-javac plugin as 
well. On user consent installer would download and install nb-javac plugin as 
well.

Existing option to install nb-javac through NB IDE will still there. In case 
user decides not to install nb-javac during the run of installer, he will get 
the dialog recommending to install nb-javac on lauch of IDE as we get now.

 

  was:
Currently once user launch NB for the first time , It popup a dialog 
recommending the user to install nb-javac plugin. It hampers the user 
experience as user expects whatever needed to run NB was already completed 
during run of installer and once he/she launched the IDE it should work 
seamlessly without asking asking of any further installation step.

 

I propose to move the step for installation of nb-javac plugin to Netbeans 
installer.

On run of installer, there can an option ask user to ask whether he/she wants 
to installs nb-javac plugin as well. On user consent installer would download 
and install nb-javac plugin as well.

Existing option to install nb-javac through NB IDE will still there.

In case of user decide not to install nb-javac during the run of installer , he 
will get the dialog recommending to install nb-javac as we get now.

 


> Option to download nb-javac during NB installation rather than post 
> installation
> 
>
> Key: NETBEANS-4502
> URL: https://issues.apache.org/jira/browse/NETBEANS-4502
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: Arunava Sinha
>Priority: Major
>
> Currently once user launch NB for the first time, It popup a dialog 
> recommending the user to install nb-javac plugin. This hampers the user 
> experience as he/she was expecting whatever needed to run NB was already 
> completed during NB installation and once he/she launched the IDE it should 
> work seamlessly without asking asking of any further installation step.
>  
> I hereby propose to move the step for installation of nb-javac plugin to 
> Netbeans installer.
> On run of installer, there can an option to ask  to installs nb-javac plugin 
> as well. On user consent installer would download and install nb-javac plugin 
> as well.
> Existing option to install nb-javac through NB IDE will still there. In case 
> user decides not to install nb-javac during the run of installer, he will get 
> the dialog recommending to install nb-javac on lauch of IDE as we get now.
>  



--
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-4502) Option to download nb-javac during NB installation rather than post installation

2020-06-25 Thread Arunava Sinha (Jira)
Arunava Sinha created NETBEANS-4502:
---

 Summary: Option to download nb-javac during NB installation rather 
than post installation
 Key: NETBEANS-4502
 URL: https://issues.apache.org/jira/browse/NETBEANS-4502
 Project: NetBeans
  Issue Type: Improvement
Reporter: Arunava Sinha


Currently once user launch NB for the first time , It popup a dialog 
recommending the user to install nb-javac plugin. It hampers the user 
experience as user expects whatever needed to run NB was already completed 
during run of installer and once he/she launched the IDE it should work 
seamlessly without asking asking of any further installation step.

 

I propose to move the step for installation of nb-javac plugin to Netbeans 
installer.

On run of installer, there can an option ask user to ask whether he/she wants 
to installs nb-javac plugin as well. On user consent installer would download 
and install nb-javac plugin as well.

Existing option to install nb-javac through NB IDE will still there.

In case of user decide not to install nb-javac during the run of installer , he 
will get the dialog recommending to install nb-javac as we get now.

 



--
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] [Assigned] (NETBEANS-4062) Unable to import Records from other package

2020-06-12 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha reassigned NETBEANS-4062:
---

Assignee: Arunava Sinha  (was: ARUNAVA SINHA)

> Unable to import Records from other package
> ---
>
> Key: NETBEANS-4062
> URL: https://issues.apache.org/jira/browse/NETBEANS-4062
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.3
>Reporter: Julian Jupiter
>Assignee: Arunava Sinha
>Priority: Minor
>  Labels: Java14, records
>
> NetBeans can't import records from other package. It instead suggests to 
> create a class.
> It has to be imported manually. Even importing manually does not work 
> smoothly coz after hitting dot, records do not show up but other classes do. 
> There is no choice but to type it in explicitly.
> Steps to reproduce:
>  # Create a record in a package, e.g. `records.Person.java`.
>  # Create main class in another package, e.g. `app.PersonApp.java`.
>  # In `PersonApp`, type in `var person = new Person();`. Using content 
> assist/auto-suggestion does not display Person.
>  # Manually type: `import records.` and using content assist does not display 
> Person. Other classes, if any, do display, though. So, instead of relying on 
> suggestion, just type it explicitly: `import records.Person;`.



--
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-4311) Support for AutoComplete inside Records

2020-06-12 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-4311:

Labels: Java14 record  (was: )

> Support for AutoComplete inside Records
> ---
>
> Key: NETBEANS-4311
> URL: https://issues.apache.org/jira/browse/NETBEANS-4311
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Affects Versions: 11.3
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>  Labels: Java14, record
> Fix For: Next
>
>
> Records was introduced in Jdk-14.
> Currently NB doesn't support fully autocomplete inside Record.
> This issue will try to address all auto-complete requirements in Records



--
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-4431) Option to create new file in Java project as record type

2020-06-12 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-4431:

Labels: Java14 record  (was: )

> Option to create new file in Java project as record type
> 
>
> Key: NETBEANS-4431
> URL: https://issues.apache.org/jira/browse/NETBEANS-4431
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>  Labels: Java14, record
>
>  
> If we navigate to below option
> File–> new File
> We will get List of all types possible java types(e.g., Interface/class/enum)
> Java Record was introduced in JDK-14, needs option to create new file with 
> record type



--
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-4431) Option to create new file in Java Project as record type

2020-06-12 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-4431:

Summary: Option to create new file in Java Project as record type  (was: 
Option to create new file as Java Record type)

> Option to create new file in Java Project as record type
> 
>
> Key: NETBEANS-4431
> URL: https://issues.apache.org/jira/browse/NETBEANS-4431
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>
>  
> If we navigate to below option
> File–> new File
> We will get List of all types possible java types(e.g., Interface/class/enum)
> Java Record was introduced in JDK-14, needs option to create new file with 
> record type



--
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-4431) Option to create new file in Java project as record type

2020-06-12 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-4431:

Summary: Option to create new file in Java project as record type  (was: 
Option to create new file in Java Project as record type)

> Option to create new file in Java project as record type
> 
>
> Key: NETBEANS-4431
> URL: https://issues.apache.org/jira/browse/NETBEANS-4431
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>
>  
> If we navigate to below option
> File–> new File
> We will get List of all types possible java types(e.g., Interface/class/enum)
> Java Record was introduced in JDK-14, needs option to create new file with 
> record type



--
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-4431) Option to create new file as Java Record type

2020-06-12 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-4431:

Summary: Option to create new file as Java Record type  (was: Option to 
create new file as record type)

> Option to create new file as Java Record type
> -
>
> Key: NETBEANS-4431
> URL: https://issues.apache.org/jira/browse/NETBEANS-4431
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>
>  
> If we navigate to below option
> File–> new File
> We will get List of all types possible java types(e.g., Interface/class/enum)
> Java Record was introduced in JDK-14, needs option to create new file with 
> record type



--
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-4431) Option to create new file as record type

2020-06-12 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-4431:

Summary: Option to create new file as record type  (was: Option to create 
new file as Record Type)

> Option to create new file as record type
> 
>
> Key: NETBEANS-4431
> URL: https://issues.apache.org/jira/browse/NETBEANS-4431
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>
>  
> If we navigate to below option
> File–> new File
> We will get List of all types possible java types(e.g., Interface/class/enum)
> Java Record was introduced in JDK-14, needs option to create new file with 
> record type



--
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-4431) Option to create new file as Record Type

2020-06-12 Thread Arunava Sinha (Jira)
Arunava Sinha created NETBEANS-4431:
---

 Summary: Option to create new file as Record Type
 Key: NETBEANS-4431
 URL: https://issues.apache.org/jira/browse/NETBEANS-4431
 Project: NetBeans
  Issue Type: Bug
  Components: java - Editor
Reporter: Arunava Sinha
Assignee: Arunava Sinha


 

If we navigate to below option

File–> new File

We will get List of all types possible java types(e.g., Interface/class/enum)

Java Record was introduced in JDK-14, needs option to create new file with 
record type



--
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-4095) NPE saving Java file with type error in for-each

2020-06-12 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-4095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17134023#comment-17134023
 ] 

Arunava Sinha commented on NETBEANS-4095:
-

Issue has been fixed in nb-javac , will be available in nb-javac for jdk-14

> NPE saving Java file with type error in for-each
> 
>
> Key: NETBEANS-4095
> URL: https://issues.apache.org/jira/browse/NETBEANS-4095
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Affects Versions: 11.3
> Environment: Java 14, NetBeans with nbjavac plugin installed
>Reporter: Eirik Bakke
>Assignee: Arunava Sinha
>Priority: Major
>  Labels: nbjavac
>
> If, during editing, a for-each loop appears with an incorrect pair of types, 
> an error dialog shows up showing a NullPointerException every time the Java 
> source file is saved, interrupting the user. A minimized example exhibiting 
> this behavior is as follows:
> {code:java}
> public final class CausesVisitIterableForeachLoopNPE {
>   public static final void main(String args[]) {
> final Map someMap = null;
> for (Object someVar : someMap) { }
>   }
> }
> {code}
> This example causes the IDE to throw the following exception:
> {noformat}
> java.lang.NullPointerException
>   at 
> com.sun.tools.javac.comp.Lower.visitIterableForeachLoop(Lower.java:3275)
>   at com.sun.tools.javac.comp.Lower.visitForeachLoop(Lower.java:3162)
>   at 
> com.sun.tools.javac.tree.JCTree$JCEnhancedForLoop.accept(JCTree.java:1176)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:70)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.visitBlock(TreeTranslator.java:167)
>   at com.sun.tools.javac.comp.Lower.visitBlock(Lower.java:3347)
>   at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1036)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.visitMethodDef(TreeTranslator.java:150)
>   at 
> com.sun.tools.javac.comp.Lower.visitMethodDefInternal(Lower.java:2538)
>   at com.sun.tools.javac.comp.Lower.visitMethodDef(Lower.java:2448)
>   at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:882)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at com.sun.tools.javac.comp.Lower.visitClassDef(Lower.java:2219)
>   at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:788)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2099)
>   at 
> com.sun.tools.javac.comp.Lower.translateTopLevelClass(Lower.java:3813)
>   at com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1691)
>   at com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1532)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl$2.process(JavacTaskImpl.java:574)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl$Filter.run(JavacTaskImpl.java:651)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl.generate(JavacTaskImpl.java:577)
> [catch] at 
> org.netbeans.modules.java.source.nbjavac.indexing.MultiPassCompileWorker.compile(MultiPassCompileWorker.java:303)
>   at 
> org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:361)
>   at 
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:138)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:275)
>   at 
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:136)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:2750)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.access$800(RepositoryUpdater.java:2154)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2636)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2634)
>   at 
> org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.refreshTransaction(TaskCache.java:540)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(RepositoryUpdater.java:2634)
>   at 
> 

[jira] [Commented] (NETBEANS-4391) Scope is wrong for ClassTree representing record in JDK-14

2020-06-12 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-4391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17134020#comment-17134020
 ] 

Arunava Sinha commented on NETBEANS-4391:
-

Issue is fixed in nb-javac , will bw available in nb-javac for jdk-14

> Scope is wrong for ClassTree representing record in JDK-14
> --
>
> Key: NETBEANS-4391
> URL: https://issues.apache.org/jira/browse/NETBEANS-4391
> Project: NetBeans
>  Issue Type: Bug
>  Components: cnd - Editor
>Affects Versions: Next
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>
> This is an issue observed in new RECORD feature that's added
> e.g.
> record Rec( | ) \{ }
> When trying to retrieve the scope inside the record at position marked by '|'.
> Expecting X,Y to be the part of the scope, but the scope doesn't return those 
> elements.
> Maybe there is a change needed in nb-javac :
> jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTrees.java
> Issue is also present in jdk-14 javac and  is already reported there. Fix 
> will be available in jdk-15 release



--
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] [Assigned] (NETBEANS-963) java.lang.AssertionError: Debugger lock taken in AWT Event Queue!

2020-06-07 Thread ARUNAVA SINHA (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ARUNAVA SINHA reassigned NETBEANS-963:
--

Assignee: (was: ARUNAVA SINHA)

> java.lang.AssertionError: Debugger lock taken in AWT Event Queue!
> -
>
> Key: NETBEANS-963
> URL: https://issues.apache.org/jira/browse/NETBEANS-963
> Project: NetBeans
>  Issue Type: Bug
>  Components: debugger - Java
>Affects Versions: 9.0
> Environment: Linux; Release Build 316
>Reporter: Peter Nabbefeld
>Priority: Critical
> Fix For: 9.0
>
> Attachments: issue.PNG
>
>
> When I've selected the "String Value" column in Variables view of the Java 
> debugger, the following exception is thrown even if I just move the cursor 
> over the string value.
> This does only happen for object values; primitive values do not seem to be 
> affected.
> Probably it's related to tooltips, as those are shown for primitive values, 
> while object values throw an exception.
> As this makes it impossible to show and review large strings and thus makes 
> debugging harder, I've set the status to "Blocker".
>  
> java.lang.AssertionError: Debugger lock taken in AWT Event Queue!
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl$DebuggerReentrantReadWriteLock$DebuggerReadLock.lock(JPDADebuggerImpl.java:2675)
>     at 
> org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl$ThreadReentrantReadWriteLock$ThreadWriteLock.lock(JPDAThreadImpl.java:2555)
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:1066)
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:1008)
>     at 
> org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:496)
>     at 
> org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:460)
>     at 
> org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:424)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.VariablesTableModel.getValueAt(VariablesTableModel.java:108)
>     at 
> org.netbeans.spi.viewmodel.Models$DelegatingTableModel.getValueAt(Models.java:2249)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.NumericDisplayFilter.getValueAt(NumericDisplayFilter.java:112)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getValueAt(VariablesTreeModelFilter.java:530)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.PendingActionsFilter.getValueAt(PendingActionsFilter.java:108)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1441)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1441)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundModel.getValueAt(Models.java:4566)
>     at 
> org.netbeans.modules.viewmodel.TreeModelNode$MyProperty.updateShortDescription(TreeModelNode.java:2102)
>     at 
> org.netbeans.modules.viewmodel.TreeModelNode$MyProperty.getShortDescription(TreeModelNode.java:2084)
>     at 
> org.openide.explorer.view.SheetCell.getTableCellRendererComponent(SheetCell.java:276)
>     at 
> org.openide.explorer.view.SheetCell$OutlineSheetCell.getTableCellRendererComponent(SheetCell.java:737)
>     at 
> org.netbeans.modules.viewmodel.DelegatingCellRenderer.getTableCellRendererComponent(DelegatingCellRenderer.java:66)
>     at java.desktop/javax.swing.JTable.prepareRenderer(JTable.java:5758)
>     at org.netbeans.swing.outline.Outline.getToolTipText(Outline.java:393)
>     at 
> java.desktop/javax.swing.ToolTipManager$insideTimerAction.actionPerformed(ToolTipManager.java:675)
>     at java.desktop/javax.swing.Timer.fireActionPerformed(Timer.java:317)
>     at java.desktop/javax.swing.Timer$DoPostEvent.run(Timer.java:249)
>     at 
> java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
>     at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
>     at java.desktop/java.awt.EventQueue.access$500(EventQueue.java:97)
>     at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:717)
>     at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:711)
>     at java.base/java.security.AccessController.doPrivileged(Native Method)
>     at 
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:89)
>  

[jira] [Created] (NETBEANS-4391) Scope is wrong for ClassTree representing record in JDK-14

2020-05-29 Thread Arunava Sinha (Jira)
Arunava Sinha created NETBEANS-4391:
---

 Summary: Scope is wrong for ClassTree representing record in JDK-14
 Key: NETBEANS-4391
 URL: https://issues.apache.org/jira/browse/NETBEANS-4391
 Project: NetBeans
  Issue Type: Bug
  Components: cnd - Editor
Affects Versions: Next
Reporter: Arunava Sinha
Assignee: Arunava Sinha


This is an issue observed in new RECORD feature that's added

e.g.
record Rec( | ) \{ }

When trying to retrieve the scope inside the record at position marked by '|'.
Expecting X,Y to be the part of the scope, but the scope doesn't return those 
elements.

Maybe there is a change needed in nb-javac :
jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTrees.java

Issue is also present in jdk-14 javac and  is already reported there. Fix will 
be available in jdk-15 release



--
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] [Comment Edited] (NETBEANSINFRA-205) CLONE - CLONE - Release installers

2020-05-28 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANSINFRA-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17118382#comment-17118382
 ] 

Arunava Sinha edited comment on NETBEANSINFRA-205 at 5/28/20, 7:01 AM:
---

[~skygo] ,

As you will be  building the Windows/Linux installer , this is to remind you of 
Symantec code signing service permission you would require for windows. (Linux 
Installer no signing is required)

Please refer below bug for details on Windows Code signing request

https://issues.apache.org/jira/browse/INFRA-17946

Please ignore if you already got the permission.

John Mc have volunteered to be the Release Manager for Mac Installer,Can you 
please assign the task(NETBEANSINFRA-205) to him


was (Author: arusinha):
[~skygo] ,

As you will be  building the Windows/Linux installer , this is to remind you of 
Symantec code signing service permission you would require for windows. (Linux 
Installer no signing is required)

Please refer below bug for details on Windows Code signing request

https://issues.apache.org/jira/browse/INFRA-17946

Please ignore if you already got the permission.

John Mc have volunteered to be the Release Manager for Mac Installer,Can you 
please assign the task to him

> CLONE - CLONE - Release installers
> --
>
> Key: NETBEANSINFRA-205
> URL: https://issues.apache.org/jira/browse/NETBEANSINFRA-205
> Project: Apache NetBeans Infra
>  Issue Type: Sub-task
>  Components: Apache NetBeans Release Preparation Tasks
>Affects Versions: Release Management 12.0
>Reporter: Neil C Smith
>Assignee: Arunava Sinha
>Priority: Major
> Fix For: Release Management 12.0
>
>




--
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] (NETBEANSINFRA-205) CLONE - CLONE - Release installers

2020-05-28 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANSINFRA-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17118382#comment-17118382
 ] 

Arunava Sinha commented on NETBEANSINFRA-205:
-

[~skygo] ,

As you will be  building the Windows/Linux installer , this is to remind you of 
Symantec code signing service permission you would require for windows. (Linux 
Installer no signing is required)

Please refer below bug for details on Windows Code signing request

https://issues.apache.org/jira/browse/INFRA-17946

Please ignore if you already got the permission.

John Mc have volunteered to be the Release Manager for Mac Installer,Can you 
please assign the task to him

> CLONE - CLONE - Release installers
> --
>
> Key: NETBEANSINFRA-205
> URL: https://issues.apache.org/jira/browse/NETBEANSINFRA-205
> Project: Apache NetBeans Infra
>  Issue Type: Sub-task
>  Components: Apache NetBeans Release Preparation Tasks
>Affects Versions: Release Management 12.0
>Reporter: Neil C Smith
>Assignee: Arunava Sinha
>Priority: Major
> Fix For: Release Management 12.0
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Resolved] (NETBEANS-4235) Formatting Issue in Records

2020-05-26 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha resolved NETBEANS-4235.
-
Fix Version/s: 12.0
   Resolution: Fixed

> Formatting Issue in Records 
> 
>
> Key: NETBEANS-4235
> URL: https://issues.apache.org/jira/browse/NETBEANS-4235
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Affects Versions: 11.3
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
> Fix For: 12.0
>
>  Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> Formatting of below code snippet is not proper in Jdk-14/jdk-15
> public record Rec1{}
>  
> expected output
> public record Rec1{
> }
> actual output
> public record Rec1{
>         }



--
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] (NETBEANSINFRA-205) CLONE - CLONE - Release installers

2020-05-14 Thread ARUNAVA SINHA (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANSINFRA-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17106952#comment-17106952
 ] 

ARUNAVA SINHA commented on NETBEANSINFRA-205:
-

Hi Eric,

We thought from NB-12.0 installer will be taken care my the Release 
Manager. Related instructions for installer is captured in below wiki.

https://cwiki.apache.org/confluence/display/NETBEANS/Installer+Build+Steps

Please let us know if any concerns.

Regards,

Arunava Sinha




> CLONE - CLONE - Release installers
> --
>
> Key: NETBEANSINFRA-205
> URL: https://issues.apache.org/jira/browse/NETBEANSINFRA-205
> Project: Apache NetBeans Infra
>  Issue Type: Sub-task
>  Components: Apache NetBeans Release Preparation Tasks
>Affects Versions: Release Management 12.0
>Reporter: Neil C Smith
>Assignee: Arunava Sinha
>Priority: Major
> Fix For: Release Management 12.0
>
>




--
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-4311) Support for AutoComplete inside Records

2020-05-07 Thread Arunava Sinha (Jira)
Arunava Sinha created NETBEANS-4311:
---

 Summary: Support for AutoComplete inside Records
 Key: NETBEANS-4311
 URL: https://issues.apache.org/jira/browse/NETBEANS-4311
 Project: NetBeans
  Issue Type: Bug
  Components: java - Editor
Affects Versions: 11.3
Reporter: Arunava Sinha
Assignee: Arunava Sinha
 Fix For: Next


Records was introduced in Jdk-14.

Currently NB doesn't support fully autocomplete inside Record.

This issue will try to address all auto-complete requirements in Records



--
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-4235) Formatting Issue in Records

2020-04-24 Thread Arunava Sinha (Jira)
Arunava Sinha created NETBEANS-4235:
---

 Summary: Formatting Issue in Records 
 Key: NETBEANS-4235
 URL: https://issues.apache.org/jira/browse/NETBEANS-4235
 Project: NetBeans
  Issue Type: Bug
  Components: java - Editor
Affects Versions: 11.3
Reporter: Arunava Sinha
Assignee: Arunava Sinha


Formatting of below code snippet is not proper in Jdk-14/jdk-15

public record Rec1{}

 

expected output

public record Rec1{

}

actual output

public record Rec1{

        }



--
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] [Comment Edited] (NETBEANS-4095) NPE saving Java file with type error in for-each

2020-04-21 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-4095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17088621#comment-17088621
 ] 

Arunava Sinha edited comment on NETBEANS-4095 at 4/21/20, 12:01 PM:


It seems issue is intermittent.  I had reproduced the issue earlier but 
currently not able to simulate it. I believe in particular scenario it will 
throw the exception. [~ebakke] , if you idea on how to reproduce it. Please let 
me know.

My env:

NB ( build from Apache:master brach) running in jdk-14 with nb-javac . 

Project Source level 14


was (Author: arusinha):
It seems issue is intermittent.  I had reproduced the issue earlier but 
currently not able to simulate it. I believe in particular scenario it will 
throw the exception. [~ebakke] , if you idea on how to reproduce it. Please let 
me know.

> NPE saving Java file with type error in for-each
> 
>
> Key: NETBEANS-4095
> URL: https://issues.apache.org/jira/browse/NETBEANS-4095
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Affects Versions: 11.3
> Environment: Java 14, NetBeans with nbjavac plugin installed
>Reporter: Eirik Bakke
>Assignee: Arunava Sinha
>Priority: Major
>  Labels: nbjavac
>
> If, during editing, a for-each loop appears with an incorrect pair of types, 
> an error dialog shows up showing a NullPointerException every time the Java 
> source file is saved, interrupting the user. A minimized example exhibiting 
> this behavior is as follows:
> {code:java}
> public final class CausesVisitIterableForeachLoopNPE {
>   public static final void main(String args[]) {
> final Map someMap = null;
> for (Object someVar : someMap) { }
>   }
> }
> {code}
> This example causes the IDE to throw the following exception:
> {noformat}
> java.lang.NullPointerException
>   at 
> com.sun.tools.javac.comp.Lower.visitIterableForeachLoop(Lower.java:3275)
>   at com.sun.tools.javac.comp.Lower.visitForeachLoop(Lower.java:3162)
>   at 
> com.sun.tools.javac.tree.JCTree$JCEnhancedForLoop.accept(JCTree.java:1176)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:70)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.visitBlock(TreeTranslator.java:167)
>   at com.sun.tools.javac.comp.Lower.visitBlock(Lower.java:3347)
>   at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1036)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.visitMethodDef(TreeTranslator.java:150)
>   at 
> com.sun.tools.javac.comp.Lower.visitMethodDefInternal(Lower.java:2538)
>   at com.sun.tools.javac.comp.Lower.visitMethodDef(Lower.java:2448)
>   at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:882)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at com.sun.tools.javac.comp.Lower.visitClassDef(Lower.java:2219)
>   at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:788)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2099)
>   at 
> com.sun.tools.javac.comp.Lower.translateTopLevelClass(Lower.java:3813)
>   at com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1691)
>   at com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1532)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl$2.process(JavacTaskImpl.java:574)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl$Filter.run(JavacTaskImpl.java:651)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl.generate(JavacTaskImpl.java:577)
> [catch] at 
> org.netbeans.modules.java.source.nbjavac.indexing.MultiPassCompileWorker.compile(MultiPassCompileWorker.java:303)
>   at 
> org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:361)
>   at 
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:138)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:275)
>   at 
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:136)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:2750)
>   

[jira] [Commented] (NETBEANS-4095) NPE saving Java file with type error in for-each

2020-04-21 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-4095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17088621#comment-17088621
 ] 

Arunava Sinha commented on NETBEANS-4095:
-

It seems issue is intermittent.  I had reproduced the issue earlier but 
currently not able to simulate it. I believe in particular scenario it will 
throw the exception. [~ebakke] , if you idea on how to reproduce it. Please let 
me know.

> NPE saving Java file with type error in for-each
> 
>
> Key: NETBEANS-4095
> URL: https://issues.apache.org/jira/browse/NETBEANS-4095
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Affects Versions: 11.3
> Environment: Java 14, NetBeans with nbjavac plugin installed
>Reporter: Eirik Bakke
>Assignee: Arunava Sinha
>Priority: Major
>  Labels: nbjavac
>
> If, during editing, a for-each loop appears with an incorrect pair of types, 
> an error dialog shows up showing a NullPointerException every time the Java 
> source file is saved, interrupting the user. A minimized example exhibiting 
> this behavior is as follows:
> {code:java}
> public final class CausesVisitIterableForeachLoopNPE {
>   public static final void main(String args[]) {
> final Map someMap = null;
> for (Object someVar : someMap) { }
>   }
> }
> {code}
> This example causes the IDE to throw the following exception:
> {noformat}
> java.lang.NullPointerException
>   at 
> com.sun.tools.javac.comp.Lower.visitIterableForeachLoop(Lower.java:3275)
>   at com.sun.tools.javac.comp.Lower.visitForeachLoop(Lower.java:3162)
>   at 
> com.sun.tools.javac.tree.JCTree$JCEnhancedForLoop.accept(JCTree.java:1176)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:70)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.visitBlock(TreeTranslator.java:167)
>   at com.sun.tools.javac.comp.Lower.visitBlock(Lower.java:3347)
>   at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1036)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.visitMethodDef(TreeTranslator.java:150)
>   at 
> com.sun.tools.javac.comp.Lower.visitMethodDefInternal(Lower.java:2538)
>   at com.sun.tools.javac.comp.Lower.visitMethodDef(Lower.java:2448)
>   at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:882)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at com.sun.tools.javac.comp.Lower.visitClassDef(Lower.java:2219)
>   at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:788)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2099)
>   at 
> com.sun.tools.javac.comp.Lower.translateTopLevelClass(Lower.java:3813)
>   at com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1691)
>   at com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1532)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl$2.process(JavacTaskImpl.java:574)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl$Filter.run(JavacTaskImpl.java:651)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl.generate(JavacTaskImpl.java:577)
> [catch] at 
> org.netbeans.modules.java.source.nbjavac.indexing.MultiPassCompileWorker.compile(MultiPassCompileWorker.java:303)
>   at 
> org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:361)
>   at 
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:138)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:275)
>   at 
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:136)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:2750)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.access$800(RepositoryUpdater.java:2154)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2636)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2634)
>   at 
> 

[jira] [Commented] (NETBEANS-3965) Source code "var" issue

2020-04-20 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17087631#comment-17087631
 ] 

Arunava Sinha commented on NETBEANS-3965:
-

fix had been made in nb-java-x repository and  issue will get resolved once 
nb-javac for jdk-14 is available in NB

> Source code "var" issue
> ---
>
> Key: NETBEANS-3965
> URL: https://issues.apache.org/jira/browse/NETBEANS-3965
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Compiler, java - Editor, platform - Action Items
>Affects Versions: 11.2, 11.3
> Environment: Apache Netbeans 11.2 and even 11.3
> OpenJDK 11.0.2
>Reporter: Netbeans User 2019
>Assignee: Arunava Sinha
>Priority: Minor
>  Labels: compile-error
>
> var File[] = file.list();
> on editor: do no show any issue
> on action items: there is no issue visible about that
> on gradle: fails in compile
> on old-style project (Java with Ant > Java Application): run without issue, 
> but if you explicitly try build you get "error: 'var' is not allowed as an 
> element type of an array



--
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-4095) NPE saving Java file with type error in for-each

2020-04-17 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-4095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17085472#comment-17085472
 ] 

Arunava Sinha commented on NETBEANS-4095:
-

Issue is reproducible, will work on the resolution

> NPE saving Java file with type error in for-each
> 
>
> Key: NETBEANS-4095
> URL: https://issues.apache.org/jira/browse/NETBEANS-4095
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Affects Versions: 11.3
> Environment: Java 14, NetBeans with nbjavac plugin installed
>Reporter: Eirik Bakke
>Assignee: Arunava Sinha
>Priority: Major
>  Labels: nbjavac
>
> If, during editing, a for-each loop appears with an incorrect pair of types, 
> an error dialog shows up showing a NullPointerException every time the Java 
> source file is saved, interrupting the user. A minimized example exhibiting 
> this behavior is as follows:
> {code:java}
> public final class CausesVisitIterableForeachLoopNPE {
>   public static final void main(String args[]) {
> final Map someMap = null;
> for (Object someVar : someMap) { }
>   }
> }
> {code}
> This example causes the IDE to throw the following exception:
> {noformat}
> java.lang.NullPointerException
>   at 
> com.sun.tools.javac.comp.Lower.visitIterableForeachLoop(Lower.java:3275)
>   at com.sun.tools.javac.comp.Lower.visitForeachLoop(Lower.java:3162)
>   at 
> com.sun.tools.javac.tree.JCTree$JCEnhancedForLoop.accept(JCTree.java:1176)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:70)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.visitBlock(TreeTranslator.java:167)
>   at com.sun.tools.javac.comp.Lower.visitBlock(Lower.java:3347)
>   at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1036)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.visitMethodDef(TreeTranslator.java:150)
>   at 
> com.sun.tools.javac.comp.Lower.visitMethodDefInternal(Lower.java:2538)
>   at com.sun.tools.javac.comp.Lower.visitMethodDef(Lower.java:2448)
>   at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:882)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at com.sun.tools.javac.comp.Lower.visitClassDef(Lower.java:2219)
>   at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:788)
>   at 
> com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2080)
>   at com.sun.tools.javac.comp.Lower.translate(Lower.java:2099)
>   at 
> com.sun.tools.javac.comp.Lower.translateTopLevelClass(Lower.java:3813)
>   at com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1691)
>   at com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1532)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl$2.process(JavacTaskImpl.java:574)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl$Filter.run(JavacTaskImpl.java:651)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl.generate(JavacTaskImpl.java:577)
> [catch] at 
> org.netbeans.modules.java.source.nbjavac.indexing.MultiPassCompileWorker.compile(MultiPassCompileWorker.java:303)
>   at 
> org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:361)
>   at 
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:138)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:275)
>   at 
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:136)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:2750)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.access$800(RepositoryUpdater.java:2154)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2636)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2634)
>   at 
> org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.refreshTransaction(TaskCache.java:540)
>   at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(RepositoryUpdater.java:2634)
>   at 
> 

[jira] [Assigned] (NETBEANS-3987) No global Java installed, then NB Installer is not working

2020-04-14 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha reassigned NETBEANS-3987:
---

Assignee: Akhilesh Singh  (was: Arunava Sinha)

> No global Java installed, then NB Installer is not working
> --
>
> Key: NETBEANS-3987
> URL: https://issues.apache.org/jira/browse/NETBEANS-3987
> Project: NetBeans
>  Issue Type: Task
>Affects Versions: 11.3
>Reporter: Arunava Sinha
>Assignee: Akhilesh Singh
>Priority: Major
>
> If Java is not installed ,  Installer won't run.
> Either Installer should allow some argument to specify java location  on it 
> should read JAVA_HOME system property



--
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] [Assigned] (NETBEANS-3985) NB installer cannot be launched in JDK-14

2020-04-14 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha reassigned NETBEANS-3985:
---

Assignee: Akhilesh Singh  (was: Arunava Sinha)

> NB installer cannot be launched in JDK-14
> -
>
> Key: NETBEANS-3985
> URL: https://issues.apache.org/jira/browse/NETBEANS-3985
> Project: NetBeans
>  Issue Type: Task
>Affects Versions: 11.3
>Reporter: Arunava Sinha
>Assignee: Akhilesh Singh
>Priority: Major
>
> NB Installer won't run under JDK 14. Installer uses JDK Pack200 Tools and API 
> for packing and unpacking which is getting removed in JDk-14. 
>  
> Please refer below JEP 
>  
> JEP 367: Remove the Pack200 Tools and API([https://openjdk.java.net/jeps/367])



--
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] [Comment Edited] (NETBEANS-3965) Source code "var" issue

2020-04-13 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17082125#comment-17082125
 ] 

Arunava Sinha edited comment on NETBEANS-3965 at 4/13/20, 11:58 AM:


sure, I will look into it

1. var [] files1 = file.list();

 2. var files2 [] = file.list();

In NB Editor, for both lines we should get error ('var' is not allowed as an 
element type of an array),  but currently getting error for only first line.


was (Author: arusinha):
sure, I will look into it

1. var [] files1 = file.list();

 2. var files2 [] = file.list();

In NB Editor, for both lines we should get error, but currently getting error 
for only first line.

> Source code "var" issue
> ---
>
> Key: NETBEANS-3965
> URL: https://issues.apache.org/jira/browse/NETBEANS-3965
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Compiler, java - Editor, platform - Action Items
>Affects Versions: 11.2, 11.3
> Environment: Apache Netbeans 11.2 and even 11.3
> OpenJDK 11.0.2
>Reporter: Netbeans User 2019
>Assignee: Arunava Sinha
>Priority: Minor
>  Labels: compile-error
>
> var File[] = file.list();
> on editor: do no show any issue
> on action items: there is no issue visible about that
> on gradle: fails in compile
> on old-style project (Java with Ant > Java Application): run without issue, 
> but if you explicitly try build you get "error: 'var' is not allowed as an 
> element type of an array



--
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] [Comment Edited] (NETBEANS-3965) Source code "var" issue

2020-04-13 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17082125#comment-17082125
 ] 

Arunava Sinha edited comment on NETBEANS-3965 at 4/13/20, 11:57 AM:


sure, I will look into it

1. var [] files1 = file.list();

 2. var files2 [] = file.list();

In NB Editor, for both lines we should get error, but currently getting error 
for only first line.


was (Author: arusinha):
sure, I will look into it

> Source code "var" issue
> ---
>
> Key: NETBEANS-3965
> URL: https://issues.apache.org/jira/browse/NETBEANS-3965
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Compiler, java - Editor, platform - Action Items
>Affects Versions: 11.2, 11.3
> Environment: Apache Netbeans 11.2 and even 11.3
> OpenJDK 11.0.2
>Reporter: Netbeans User 2019
>Assignee: Arunava Sinha
>Priority: Minor
>  Labels: compile-error
>
> var File[] = file.list();
> on editor: do no show any issue
> on action items: there is no issue visible about that
> on gradle: fails in compile
> on old-style project (Java with Ant > Java Application): run without issue, 
> but if you explicitly try build you get "error: 'var' is not allowed as an 
> element type of an array



--
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-3965) Source code "var" issue

2020-04-13 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17082125#comment-17082125
 ] 

Arunava Sinha commented on NETBEANS-3965:
-

sure, I will look into it

> Source code "var" issue
> ---
>
> Key: NETBEANS-3965
> URL: https://issues.apache.org/jira/browse/NETBEANS-3965
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Compiler, java - Editor, platform - Action Items
>Affects Versions: 11.2, 11.3
> Environment: Apache Netbeans 11.2 and even 11.3
> OpenJDK 11.0.2
>Reporter: Netbeans User 2019
>Assignee: Arunava Sinha
>Priority: Minor
>  Labels: compile-error
>
> var File[] = file.list();
> on editor: do no show any issue
> on action items: there is no issue visible about that
> on gradle: fails in compile
> on old-style project (Java with Ant > Java Application): run without issue, 
> but if you explicitly try build you get "error: 'var' is not allowed as an 
> element type of an array



--
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] [Assigned] (NETBEANS-3965) Source code "var" issue

2020-04-13 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha reassigned NETBEANS-3965:
---

Assignee: Arunava Sinha  (was: ARUNAVA SINHA)

> Source code "var" issue
> ---
>
> Key: NETBEANS-3965
> URL: https://issues.apache.org/jira/browse/NETBEANS-3965
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Compiler, java - Editor, platform - Action Items
>Affects Versions: 11.2, 11.3
> Environment: Apache Netbeans 11.2 and even 11.3
> OpenJDK 11.0.2
>Reporter: Netbeans User 2019
>Assignee: Arunava Sinha
>Priority: Minor
>  Labels: compile-error
>
> var File[] = file.list();
> on editor: do no show any issue
> on action items: there is no issue visible about that
> on gradle: fails in compile
> on old-style project (Java with Ant > Java Application): run without issue, 
> but if you explicitly try build you get "error: 'var' is not allowed as an 
> element type of an array



--
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-3985) NB installer cannot be launched in JDK-14

2020-03-23 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17064772#comment-17064772
 ] 

Arunava Sinha commented on NETBEANS-3985:
-

Thanks [~ebresie] for the info. This issues doesn't dependent on any planned 
feature for NB-12.0 release and neither any planned feature depends on this 
issue

> NB installer cannot be launched in JDK-14
> -
>
> Key: NETBEANS-3985
> URL: https://issues.apache.org/jira/browse/NETBEANS-3985
> Project: NetBeans
>  Issue Type: Task
>Affects Versions: 11.3
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>
> NB Installer won't run under JDK 14. Installer uses JDK Pack200 Tools and API 
> for packing and unpacking which is getting removed in JDk-14. 
>  
> Please refer below JEP 
>  
> JEP 367: Remove the Pack200 Tools and API([https://openjdk.java.net/jeps/367])



--
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] [Assigned] (NETBEANS-1962) Java 11: Opening Java source files from the JDK takes minutes

2020-03-19 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha reassigned NETBEANS-1962:
---

Assignee: (was: Arunava Sinha)

> Java 11: Opening Java source files from the JDK takes minutes
> -
>
> Key: NETBEANS-1962
> URL: https://issues.apache.org/jira/browse/NETBEANS-1962
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Platform, java - Source
>Affects Versions: 11.0
> Environment: Debian GNU/Linux 9, OpenJDK 11.0.1
>Reporter: Michael Groß
>Priority: Critical
> Attachments: 
> 2019-01-19_Netbeans10_Java11_JavaPlatformManager_Sources_fast.png, 
> 2019-01-19_Netbeans10_Java11_JavaPlatformManager_Sources_verySLOW.png, 
> 2019-01-20_Netbeans10_Java8_JavaPlatformManager_Sources.png
>
>
> For Java 8 it is enough to provide the path to the 
> /usr/lib/jvm/openjdk-8/src.zip with the source files of the JDK with the Java 
> Platform Manager/Sources. The I can click on a class like java.lang.String 
> the source file for it is opened almost immediately.
> For Java 11 providing the /usr/lib/jvm/openjdk-11/src.zip does not bring the 
> source. There is no error message in the IDE log (View > IDE Log).
> Unpacking the src.zip and then including each folder herein, from java.base 
> to java.xml.crypto works - but it took minutes on my machine at high CPU load 
> (Intel(R) Pentium(R) CPU B940 @ 2.00GHz, SSD drive).
> Then I merged all sub-directories from the direcories java.base to 
> java.xml.crypto together. The resulting structure is
> com/
> java/
> javax/
> jdk/
> org/
> sun/
> (such as the structure before Java 9). Now I can open the Java sources for 
> Java 11 as fast as before.
>  # Could you please adapt the program such that I can provide a src.zip for 
> the JDK and it opens the sources from where?
>  # Could you please write an error in the IDE log when the source file was 
> not found (including the absolute path of that file)?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Resolved] (NETBEANS-3955) Identified redundant code in nb-javac

2020-03-19 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha resolved NETBEANS-3955.
-
Resolution: Fixed

> Identified redundant code in nb-javac
> -
>
> Key: NETBEANS-3955
> URL: https://issues.apache.org/jira/browse/NETBEANS-3955
> Project: NetBeans
>  Issue Type: Bug
>  Components: third-party - Other
>Reporter: SARILLA MOHANARAO
>Assignee: Arunava Sinha
>Priority: Major
> Fix For: Next
>
>
> Below are the redundant code present in nb-javac, which are not getting 
> called by any other java classes in nb-javac and netbeans code:
> *src/jdk.compiler/share/classes/com/sun/tools/hc/LambdaMetafactory.java class*
> *src/jdk.compiler/share/classes/com/sun/source/util/JavacTask.java :*
>               identified *instance()* method in *JavacTask.java* class which 
> is not called by any other class.
>  



--
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-3987) No global Java installed, then NB Installer is not working

2020-03-10 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-3987:

Summary: No global Java installed, then NB Installer is not working  (was: 
No global Java installed, then installer is not working)

> No global Java installed, then NB Installer is not working
> --
>
> Key: NETBEANS-3987
> URL: https://issues.apache.org/jira/browse/NETBEANS-3987
> Project: NetBeans
>  Issue Type: Task
>Affects Versions: 11.3
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>
> If Java is not installed ,  Installer won't run.
> Either Installer should allow some argument to specify java location  on it 
> should read JAVA_HOME system property



--
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-3987) No global Java installed, then installer is not working

2020-03-10 Thread Arunava Sinha (Jira)
Arunava Sinha created NETBEANS-3987:
---

 Summary: No global Java installed, then installer is not working
 Key: NETBEANS-3987
 URL: https://issues.apache.org/jira/browse/NETBEANS-3987
 Project: NetBeans
  Issue Type: Task
Affects Versions: 11.3
Reporter: Arunava Sinha
Assignee: Arunava Sinha


If Java is not installed ,  Installer won't run.

Either Installer should allow some argument to specify java location  on it 
should read JAVA_HOME system property



--
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-3985) NB installer cannot be launched in JDK-14

2020-03-10 Thread Arunava Sinha (Jira)
Arunava Sinha created NETBEANS-3985:
---

 Summary: NB installer cannot be launched in JDK-14
 Key: NETBEANS-3985
 URL: https://issues.apache.org/jira/browse/NETBEANS-3985
 Project: NetBeans
  Issue Type: Task
Affects Versions: 11.3
Reporter: Arunava Sinha
Assignee: Arunava Sinha


NB Installer won't run under JDK 14. Installer uses JDK Pack200 Tools and API 
for packing and unpacking which is getting removed in JDk-14. 
 
Please refer below JEP 
 
JEP 367: Remove the Pack200 Tools and API([https://openjdk.java.net/jeps/367])



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Resolved] (NETBEANS-3616) Support of debug option and enable preview-hint in Single Source File

2020-03-10 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha resolved NETBEANS-3616.
-
Fix Version/s: 11.3
   Resolution: Fixed

> Support of debug option and enable preview-hint in Single Source File
> -
>
> Key: NETBEANS-3616
> URL: https://issues.apache.org/jira/browse/NETBEANS-3616
> Project: NetBeans
>  Issue Type: Improvement
>  Components: java - Editor
>Affects Versions: 11.1
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.3
>
>  Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> Need to provide below two features for single source Java file .
> 1. In ant and maven java project , there is a specific hint for enabling 
> preview feature.
> Same is missing in Single source file.
>  
> 2. Currently NB-11.2 supports running of single source file , but debug 
> action is missing
> [https://openjdk.java.net/jeps/330.]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Resolved] (NETBEANS-3793) Debug of single Source Java File not working in windows

2020-03-10 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha resolved NETBEANS-3793.
-
Fix Version/s: 11.3
   Resolution: Fixed

> Debug of single Source Java File not working in windows
> ---
>
> Key: NETBEANS-3793
> URL: https://issues.apache.org/jira/browse/NETBEANS-3793
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: Next
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.3
>
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> Debug of single Source Java File not working in windows
> The issue in related to below bug:
> https://issues.apache.org/jira/browse/NETBEANS-3616



--
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-2457) Error hint to fix the '--enable-preview' features in Java Application

2020-02-13 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-2457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-2457:

 Attachment: enable-preview.png
Description: 
!enable-preview.png! Suppose we had used switch-expression in Java application 
(JDK-12)

e.g.,

int a = switch (num)

{      case 1 ->1;     default->2; }

;

It will show the below error:

switch expressions are a preview feature and are disabled by default.
 (use --enable-preview to enable switch expressions)

 

NetBeans doesn't provide the fix.

Currently manually need to add '--enable-preview" in build configuration file .

  was:
Suppose we had used switch-expression in Java application (JDK-12)

e.g.,

int a = switch (num)

{      case 1 ->1;     default->2; }

;

It will show the below error:

switch expressions are a preview feature and are disabled by default.
 (use --enable-preview to enable switch expressions)

 

NetBeans doesn't provide the fix.

Currently manually need to add '--enable-preview" in build configuration file .


> Error hint to fix the '--enable-preview' features in  Java Application
> --
>
> Key: NETBEANS-2457
> URL: https://issues.apache.org/jira/browse/NETBEANS-2457
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.1
>
> Attachments: enable-preview.png, plugin-addition-in-pom.png, 
> run-config-changes.png
>
>  Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> !enable-preview.png! Suppose we had used switch-expression in Java 
> application (JDK-12)
> e.g.,
> int a = switch (num)
> {      case 1 ->1;     default->2; }
> ;
> It will show the below error:
> switch expressions are a preview feature and are disabled by default.
>  (use --enable-preview to enable switch expressions)
>  
> NetBeans doesn't provide the fix.
> Currently manually need to add '--enable-preview" in build configuration file 
> .



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-2457) Error hint to fix the '--enable-preview' features in Java Application

2020-02-13 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-2457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-2457:

Attachment: run-config-changes.png

!run-config-changes.png!

> Error hint to fix the '--enable-preview' features in  Java Application
> --
>
> Key: NETBEANS-2457
> URL: https://issues.apache.org/jira/browse/NETBEANS-2457
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.1
>
> Attachments: enable-preview.png, plugin-addition-in-pom.png, 
> run-config-changes.png
>
>  Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> Suppose we had used switch-expression in Java application (JDK-12)
> e.g.,
> int a = switch (num)
> {      case 1 ->1;     default->2; }
> ;
> It will show the below error:
> switch expressions are a preview feature and are disabled by default.
>  (use --enable-preview to enable switch expressions)
>  
> NetBeans doesn't provide the fix.
> Currently manually need to add '--enable-preview" in build configuration file 
> .



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-2457) Error hint to fix the '--enable-preview' features in Java Application

2020-02-13 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-2457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-2457:

Attachment: plugin-addition-in-pom.png

!plugin-addition-in-pom.png!

> Error hint to fix the '--enable-preview' features in  Java Application
> --
>
> Key: NETBEANS-2457
> URL: https://issues.apache.org/jira/browse/NETBEANS-2457
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.1
>
> Attachments: plugin-addition-in-pom.png
>
>  Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> Suppose we had used switch-expression in Java application (JDK-12)
> e.g.,
> int a = switch (num)
> {      case 1 ->1;     default->2; }
> ;
> It will show the below error:
> switch expressions are a preview feature and are disabled by default.
>  (use --enable-preview to enable switch expressions)
>  
> NetBeans doesn't provide the fix.
> Currently manually need to add '--enable-preview" in build configuration file 
> .



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-2457) Error hint to fix the '--enable-preview' features in Java Application

2020-02-13 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-2457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17036055#comment-17036055
 ] 

Arunava Sinha commented on NETBEANS-2457:
-

On use of enable-preview hint in maven project, below changes will happen
 # in pom.xml it will add  a plugin "maven-compiler-plugin" with enable preview 
as parameter
 # in run config "--enable-preview" vm parameter will be added

Please see the attached screenshots for details wherein  Text-Block is used as 
an example in JDK-14 NB run-time

> Error hint to fix the '--enable-preview' features in  Java Application
> --
>
> Key: NETBEANS-2457
> URL: https://issues.apache.org/jira/browse/NETBEANS-2457
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.1
>
>  Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> Suppose we had used switch-expression in Java application (JDK-12)
> e.g.,
> int a = switch (num)
> {      case 1 ->1;     default->2; }
> ;
> It will show the below error:
> switch expressions are a preview feature and are disabled by default.
>  (use --enable-preview to enable switch expressions)
>  
> NetBeans doesn't provide the fix.
> Currently manually need to add '--enable-preview" in build configuration file 
> .



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Created] (NETBEANS-3825) NB-Javac Upgrade to JDK-14

2020-02-10 Thread Arunava Sinha (Jira)
Arunava Sinha created NETBEANS-3825:
---

 Summary: NB-Javac Upgrade to JDK-14
 Key: NETBEANS-3825
 URL: https://issues.apache.org/jira/browse/NETBEANS-3825
 Project: NetBeans
  Issue Type: Task
Affects Versions: 12.0
Reporter: Arunava Sinha
Assignee: Arunava Sinha


NB-11.3, currently is supported by nb-javac for JDK-13 .

Will upgrade nb-javac  to make it in sync with JDK-14

nb-javac link:  [https://hg.netbeans.org/main/nb-java-x]



--
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] [Comment Edited] (NETBEANS-963) java.lang.AssertionError: Debugger lock taken in AWT Event Queue!

2020-02-06 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17032089#comment-17032089
 ] 

Arunava Sinha edited comment on NETBEANS-963 at 2/7/20 3:41 AM:


Env:

Java: 13-ea; Java HotSpot(TM) 64-Bit Server VM 13-ea+25
 Runtime: Java(TM) SE Runtime Environment 13-ea+25
 System: Linux version 4.1.12-124.27.1.el7uek.x86_64 running on amd64; UTF-8; 
en_US (nb)

I tried debugging below code in release113 branch build

 

String s = "heelo 
Worlddd";
 Integer key = 10;
 String value = "value";
 HashMap map = new HashMap();
 map.put(key,value);
 System.out.print(s);

 

Now in variable window, I was able to  click on ... button  and see the value 
of both map entry and s variable

Please let me know step to reproduce the issue.

Also attached the screenshot which show the map value field in a pop-up window 
once one click on ... button

!issue.PNG!

 

 


was (Author: arusinha):
Env:

Java: 13-ea; Java HotSpot(TM) 64-Bit Server VM 13-ea+25
 Runtime: Java(TM) SE Runtime Environment 13-ea+25
 System: Linux version 4.1.12-124.27.1.el7uek.x86_64 running on amd64; UTF-8; 
en_US (nb)

I tried debugging below code in release113 branch build

 

String s = "heelo 
Worlddd";
 Integer key = 10;
 String value = "value";
 HashMap map = new HashMap();
 map.put(key,value);
 System.out.print(s);

 

Now in variable window, I was able to  click on ... button  and see the value 
of both map and s variable

Please let me know step to reproduce the issue.

Also attached the screenshot which show the map value field in a pop-up window 
once one click on ... button

!issue.PNG!

 

 

> java.lang.AssertionError: Debugger lock taken in AWT Event Queue!
> -
>
> Key: NETBEANS-963
> URL: https://issues.apache.org/jira/browse/NETBEANS-963
> Project: NetBeans
>  Issue Type: Bug
>  Components: debugger - Java
>Affects Versions: 9.0
> Environment: Linux; Release Build 316
>Reporter: Peter Nabbefeld
>Assignee: ARUNAVA SINHA
>Priority: Critical
> Fix For: 9.0
>
> Attachments: issue.PNG
>
>
> When I've selected the "String Value" column in Variables view of the Java 
> debugger, the following exception is thrown even if I just move the cursor 
> over the string value.
> This does only happen for object values; primitive values do not seem to be 
> affected.
> Probably it's related to tooltips, as those are shown for primitive values, 
> while object values throw an exception.
> As this makes it impossible to show and review large strings and thus makes 
> debugging harder, I've set the status to "Blocker".
>  
> java.lang.AssertionError: Debugger lock taken in AWT Event Queue!
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl$DebuggerReentrantReadWriteLock$DebuggerReadLock.lock(JPDADebuggerImpl.java:2675)
>     at 
> org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl$ThreadReentrantReadWriteLock$ThreadWriteLock.lock(JPDAThreadImpl.java:2555)
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:1066)
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:1008)
>     at 
> org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:496)
>     at 
> org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:460)
>     at 
> org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:424)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.VariablesTableModel.getValueAt(VariablesTableModel.java:108)
>     at 
> org.netbeans.spi.viewmodel.Models$DelegatingTableModel.getValueAt(Models.java:2249)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.NumericDisplayFilter.getValueAt(NumericDisplayFilter.java:112)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getValueAt(VariablesTreeModelFilter.java:530)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.PendingActionsFilter.getValueAt(PendingActionsFilter.java:108)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1441)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1441)
>     at 
> 

[jira] [Comment Edited] (NETBEANS-963) java.lang.AssertionError: Debugger lock taken in AWT Event Queue!

2020-02-06 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17032089#comment-17032089
 ] 

Arunava Sinha edited comment on NETBEANS-963 at 2/7/20 3:39 AM:


Env:

Java: 13-ea; Java HotSpot(TM) 64-Bit Server VM 13-ea+25
 Runtime: Java(TM) SE Runtime Environment 13-ea+25
 System: Linux version 4.1.12-124.27.1.el7uek.x86_64 running on amd64; UTF-8; 
en_US (nb)

I tried debugging below code in release113 branch build

 

String s = "heelo 
Worlddd";
 Integer key = 10;
 String value = "value";
 HashMap map = new HashMap();
 map.put(key,value);
 System.out.print(s);

 

Now in variable window, I was able to  click on ... button  and see the value 
of both map and s variable

Please let me know step to reproduce the issue.

Also attached the screenshot which show the map value field in a pop-up window 
once one click on ... button

!issue.PNG!

 

 


was (Author: arusinha):
Env:

Java: 13-ea; Java HotSpot(TM) 64-Bit Server VM 13-ea+25
Runtime: Java(TM) SE Runtime Environment 13-ea+25
System: Linux version 4.1.12-124.27.1.el7uek.x86_64 running on amd64; UTF-8; 
en_US (nb)

I tried debugging below code in release113 branch build

 

String s = "heelo 
Worlddd";
 Integer key = 10;
 String value = "value";
 HashMap map = new HashMap();
 map.put(key,value);
 System.out.print(s);

 

Now in variable window, I was able to  click on ... button  and see the value 
of both map and s variable

Please let me know step to reproduce the issue

!issue.PNG!

 

 

> java.lang.AssertionError: Debugger lock taken in AWT Event Queue!
> -
>
> Key: NETBEANS-963
> URL: https://issues.apache.org/jira/browse/NETBEANS-963
> Project: NetBeans
>  Issue Type: Bug
>  Components: debugger - Java
>Affects Versions: 9.0
> Environment: Linux; Release Build 316
>Reporter: Peter Nabbefeld
>Assignee: ARUNAVA SINHA
>Priority: Critical
> Fix For: 9.0
>
> Attachments: issue.PNG
>
>
> When I've selected the "String Value" column in Variables view of the Java 
> debugger, the following exception is thrown even if I just move the cursor 
> over the string value.
> This does only happen for object values; primitive values do not seem to be 
> affected.
> Probably it's related to tooltips, as those are shown for primitive values, 
> while object values throw an exception.
> As this makes it impossible to show and review large strings and thus makes 
> debugging harder, I've set the status to "Blocker".
>  
> java.lang.AssertionError: Debugger lock taken in AWT Event Queue!
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl$DebuggerReentrantReadWriteLock$DebuggerReadLock.lock(JPDADebuggerImpl.java:2675)
>     at 
> org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl$ThreadReentrantReadWriteLock$ThreadWriteLock.lock(JPDAThreadImpl.java:2555)
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:1066)
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:1008)
>     at 
> org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:496)
>     at 
> org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:460)
>     at 
> org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:424)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.VariablesTableModel.getValueAt(VariablesTableModel.java:108)
>     at 
> org.netbeans.spi.viewmodel.Models$DelegatingTableModel.getValueAt(Models.java:2249)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.NumericDisplayFilter.getValueAt(NumericDisplayFilter.java:112)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getValueAt(VariablesTreeModelFilter.java:530)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.PendingActionsFilter.getValueAt(PendingActionsFilter.java:108)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1441)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1441)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundModel.getValueAt(Models.java:4566)
>     at 
> 

[jira] [Commented] (NETBEANS-963) java.lang.AssertionError: Debugger lock taken in AWT Event Queue!

2020-02-06 Thread Arunava Sinha (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17032089#comment-17032089
 ] 

Arunava Sinha commented on NETBEANS-963:


Env:

Java: 13-ea; Java HotSpot(TM) 64-Bit Server VM 13-ea+25
Runtime: Java(TM) SE Runtime Environment 13-ea+25
System: Linux version 4.1.12-124.27.1.el7uek.x86_64 running on amd64; UTF-8; 
en_US (nb)

I tried debugging below code in release113 branch build

 

String s = "heelo 
Worlddd";
 Integer key = 10;
 String value = "value";
 HashMap map = new HashMap();
 map.put(key,value);
 System.out.print(s);

 

Now in variable window, I was able to  click on ... button  and see the value 
of both map and s variable

Please let me know step to reproduce the issue

!issue.PNG!

 

 

> java.lang.AssertionError: Debugger lock taken in AWT Event Queue!
> -
>
> Key: NETBEANS-963
> URL: https://issues.apache.org/jira/browse/NETBEANS-963
> Project: NetBeans
>  Issue Type: Bug
>  Components: debugger - Java
>Affects Versions: 9.0
> Environment: Linux; Release Build 316
>Reporter: Peter Nabbefeld
>Assignee: ARUNAVA SINHA
>Priority: Critical
> Fix For: 9.0
>
> Attachments: issue.PNG
>
>
> When I've selected the "String Value" column in Variables view of the Java 
> debugger, the following exception is thrown even if I just move the cursor 
> over the string value.
> This does only happen for object values; primitive values do not seem to be 
> affected.
> Probably it's related to tooltips, as those are shown for primitive values, 
> while object values throw an exception.
> As this makes it impossible to show and review large strings and thus makes 
> debugging harder, I've set the status to "Blocker".
>  
> java.lang.AssertionError: Debugger lock taken in AWT Event Queue!
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl$DebuggerReentrantReadWriteLock$DebuggerReadLock.lock(JPDADebuggerImpl.java:2675)
>     at 
> org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl$ThreadReentrantReadWriteLock$ThreadWriteLock.lock(JPDAThreadImpl.java:2555)
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:1066)
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:1008)
>     at 
> org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:496)
>     at 
> org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:460)
>     at 
> org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:424)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.VariablesTableModel.getValueAt(VariablesTableModel.java:108)
>     at 
> org.netbeans.spi.viewmodel.Models$DelegatingTableModel.getValueAt(Models.java:2249)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.NumericDisplayFilter.getValueAt(NumericDisplayFilter.java:112)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getValueAt(VariablesTreeModelFilter.java:530)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.PendingActionsFilter.getValueAt(PendingActionsFilter.java:108)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1441)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1441)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundModel.getValueAt(Models.java:4566)
>     at 
> org.netbeans.modules.viewmodel.TreeModelNode$MyProperty.updateShortDescription(TreeModelNode.java:2102)
>     at 
> org.netbeans.modules.viewmodel.TreeModelNode$MyProperty.getShortDescription(TreeModelNode.java:2084)
>     at 
> org.openide.explorer.view.SheetCell.getTableCellRendererComponent(SheetCell.java:276)
>     at 
> org.openide.explorer.view.SheetCell$OutlineSheetCell.getTableCellRendererComponent(SheetCell.java:737)
>     at 
> org.netbeans.modules.viewmodel.DelegatingCellRenderer.getTableCellRendererComponent(DelegatingCellRenderer.java:66)
>     at java.desktop/javax.swing.JTable.prepareRenderer(JTable.java:5758)
>     at org.netbeans.swing.outline.Outline.getToolTipText(Outline.java:393)
>     at 
> java.desktop/javax.swing.ToolTipManager$insideTimerAction.actionPerformed(ToolTipManager.java:675)
>     at 

[jira] [Updated] (NETBEANS-963) java.lang.AssertionError: Debugger lock taken in AWT Event Queue!

2020-02-06 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-963:
---
Attachment: issue.PNG

> java.lang.AssertionError: Debugger lock taken in AWT Event Queue!
> -
>
> Key: NETBEANS-963
> URL: https://issues.apache.org/jira/browse/NETBEANS-963
> Project: NetBeans
>  Issue Type: Bug
>  Components: debugger - Java
>Affects Versions: 9.0
> Environment: Linux; Release Build 316
>Reporter: Peter Nabbefeld
>Assignee: ARUNAVA SINHA
>Priority: Critical
> Fix For: 9.0
>
> Attachments: issue.PNG
>
>
> When I've selected the "String Value" column in Variables view of the Java 
> debugger, the following exception is thrown even if I just move the cursor 
> over the string value.
> This does only happen for object values; primitive values do not seem to be 
> affected.
> Probably it's related to tooltips, as those are shown for primitive values, 
> while object values throw an exception.
> As this makes it impossible to show and review large strings and thus makes 
> debugging harder, I've set the status to "Blocker".
>  
> java.lang.AssertionError: Debugger lock taken in AWT Event Queue!
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl$DebuggerReentrantReadWriteLock$DebuggerReadLock.lock(JPDADebuggerImpl.java:2675)
>     at 
> org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl$ThreadReentrantReadWriteLock$ThreadWriteLock.lock(JPDAThreadImpl.java:2555)
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:1066)
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:1008)
>     at 
> org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:496)
>     at 
> org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:460)
>     at 
> org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:424)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.VariablesTableModel.getValueAt(VariablesTableModel.java:108)
>     at 
> org.netbeans.spi.viewmodel.Models$DelegatingTableModel.getValueAt(Models.java:2249)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.NumericDisplayFilter.getValueAt(NumericDisplayFilter.java:112)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getValueAt(VariablesTreeModelFilter.java:530)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.PendingActionsFilter.getValueAt(PendingActionsFilter.java:108)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1439)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1441)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1441)
>     at 
> org.netbeans.spi.viewmodel.Models$CompoundModel.getValueAt(Models.java:4566)
>     at 
> org.netbeans.modules.viewmodel.TreeModelNode$MyProperty.updateShortDescription(TreeModelNode.java:2102)
>     at 
> org.netbeans.modules.viewmodel.TreeModelNode$MyProperty.getShortDescription(TreeModelNode.java:2084)
>     at 
> org.openide.explorer.view.SheetCell.getTableCellRendererComponent(SheetCell.java:276)
>     at 
> org.openide.explorer.view.SheetCell$OutlineSheetCell.getTableCellRendererComponent(SheetCell.java:737)
>     at 
> org.netbeans.modules.viewmodel.DelegatingCellRenderer.getTableCellRendererComponent(DelegatingCellRenderer.java:66)
>     at java.desktop/javax.swing.JTable.prepareRenderer(JTable.java:5758)
>     at org.netbeans.swing.outline.Outline.getToolTipText(Outline.java:393)
>     at 
> java.desktop/javax.swing.ToolTipManager$insideTimerAction.actionPerformed(ToolTipManager.java:675)
>     at java.desktop/javax.swing.Timer.fireActionPerformed(Timer.java:317)
>     at java.desktop/javax.swing.Timer$DoPostEvent.run(Timer.java:249)
>     at 
> java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
>     at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
>     at java.desktop/java.awt.EventQueue.access$500(EventQueue.java:97)
>     at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:717)
>     at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:711)
>     at java.base/java.security.AccessController.doPrivileged(Native Method)
>     at 
> 

[jira] [Created] (NETBEANS-3793) Debug of single Source Java File not working in windows

2020-02-04 Thread Arunava Sinha (Jira)
Arunava Sinha created NETBEANS-3793:
---

 Summary: Debug of single Source Java File not working in windows
 Key: NETBEANS-3793
 URL: https://issues.apache.org/jira/browse/NETBEANS-3793
 Project: NetBeans
  Issue Type: Bug
Affects Versions: Next
Reporter: Arunava Sinha
Assignee: Arunava Sinha


Debug of single Source Java File not working in windows

The issue in related to below bug:

https://issues.apache.org/jira/browse/NETBEANS-3616



--
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-3616) Support of debug option and enable preview-hint in Single Source File

2020-01-10 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-3616:

Issue Type: Improvement  (was: Bug)

> Support of debug option and enable preview-hint in Single Source File
> -
>
> Key: NETBEANS-3616
> URL: https://issues.apache.org/jira/browse/NETBEANS-3616
> Project: NetBeans
>  Issue Type: Improvement
>  Components: java - Editor
>Affects Versions: 11.1
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Need to provide below two features for single source Java file .
> 1. In ant and maven java project , there is a specific hint for enabling 
> preview feature.
> Same is missing in Single source file.
>  
> 2. Currently NB-11.2 supports running of single source file , but debug 
> action is missing
> [https://openjdk.java.net/jeps/330.]



--
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-3616) Support of debug option and enable preview-hint in Single Source File

2020-01-10 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-3616:

Summary: Support of debug option and enable preview-hint in Single Source 
File  (was: Support of debug option and enable preview-hint for Single Source 
File)

> Support of debug option and enable preview-hint in Single Source File
> -
>
> Key: NETBEANS-3616
> URL: https://issues.apache.org/jira/browse/NETBEANS-3616
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Affects Versions: 11.1
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Need to provide below two features for single source Java file .
> 1. In ant and maven java project , there is a specific hint for enabling 
> preview feature.
> Same is missing in Single source file.
>  
> 2. Currently NB-11.2 supports running of single source file , but debug 
> action is missing
> [https://openjdk.java.net/jeps/330.]



--
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-3616) Support of debug option and enable preview-hint for Single Source File

2020-01-10 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-3616:

Summary: Support of debug option and enable preview-hint for Single Source 
File  (was: Support of debug and enable preview-hint for Single Source File)

> Support of debug option and enable preview-hint for Single Source File
> --
>
> Key: NETBEANS-3616
> URL: https://issues.apache.org/jira/browse/NETBEANS-3616
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Affects Versions: 11.1
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>
> Need to provide below two features for single source Java file .
> 1. In ant and maven java project , there is a specific hint for enabling 
> preview feature.
> Same is missing in Single source file.
>  
> 2. Currently NB-11.2 supports running of single source file , but debug 
> action is missing
> [https://openjdk.java.net/jeps/330.]



--
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] [Closed] (NETBEANS-3617) Support for reading compiler VM arguments during file parsing in Java Editor For single Source file

2020-01-10 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha closed NETBEANS-3617.
---
Resolution: Fixed

> Support for reading compiler VM arguments during file parsing in  Java Editor 
> For single Source file
> 
>
> Key: NETBEANS-3617
> URL: https://issues.apache.org/jira/browse/NETBEANS-3617
> Project: NetBeans
>  Issue Type: Improvement
>  Components: java - Editor
>Affects Versions: 11.1
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>
> Suppose somebody had opened a single suppose file(JEP330) and IDE is runnning 
> in JDK 13
> Sample code.
> public static void main (String args[])
> {
> String str ="""
>                   hello""";
> }
>  
> Text block is preview feature and need to set below properties in file 
> Properties->VM Args
> --enable-preview --source 13
> Once the properties are set run of the file will be okay but is the Editor,  
> the "text Block" will be marked in red showing error "Text block is a preview 
> feature".
> The editor gives the false impression that enable-preview needs to be enable 
> though the properties are already set.



--
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] [Closed] (NETBEANS-3367) Support for Debug in Single-File Source-Code Programs

2020-01-10 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha closed NETBEANS-3367.
---
Resolution: Fixed

> Support for Debug in  Single-File Source-Code Programs
> --
>
> Key: NETBEANS-3367
> URL: https://issues.apache.org/jira/browse/NETBEANS-3367
> Project: NetBeans
>  Issue Type: Improvement
>  Components: debugger - Java
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently NB-11.2 supports running of single source file , but debug action 
> is missing
> [https://openjdk.java.net/jeps/330.]



--
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-3616) Support of debug and enable preview-hint for Single Source File

2020-01-10 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-3616:

Description: 
Need to provide below two features for single source Java file .

1. In ant and maven java project , there is a specific hint for enabling 
preview feature.

Same is missing in Single source file.

 

2. Currently NB-11.2 supports running of single source file , but debug action 
is missing

[https://openjdk.java.net/jeps/330.]

  was:
In ant and maven java project , there is a specific hint for enablling preview 
feature.

Same is missing in Single source file.


> Support of debug and enable preview-hint for Single Source File
> ---
>
> Key: NETBEANS-3616
> URL: https://issues.apache.org/jira/browse/NETBEANS-3616
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Affects Versions: 11.1
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>
> Need to provide below two features for single source Java file .
> 1. In ant and maven java project , there is a specific hint for enabling 
> preview feature.
> Same is missing in Single source file.
>  
> 2. Currently NB-11.2 supports running of single source file , but debug 
> action is missing
> [https://openjdk.java.net/jeps/330.]



--
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-3616) Support of debug and enable preview-hint for Single Source File

2020-01-10 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-3616:

Summary: Support of debug and enable preview-hint for Single Source File  
(was: Enable-Preview hint for Single Source File)

> Support of debug and enable preview-hint for Single Source File
> ---
>
> Key: NETBEANS-3616
> URL: https://issues.apache.org/jira/browse/NETBEANS-3616
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Affects Versions: 11.1
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>
> In ant and maven java project , there is a specific hint for enablling 
> preview feature.
> Same is missing in Single source file.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-3617) Support for reading compiler VM arguments during file parsing in Java Editor For single Source file

2019-12-19 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha updated NETBEANS-3617:

  Component/s: java - Editor
Affects Version/s: 11.1
  Description: 
Suppose somebody had opened a single suppose file(JEP330) and IDE is runnning 
in JDK 13

Sample code.

public static void main (String args[])

{

String str ="""

                  hello""";

}

 

Text block is preview feature and need to set below properties in file 
Properties->VM Args

--enable-preview --source 13

Once the properties are set run of the file will be okay but is the Editor,  
the "text Block" will be marked in red showing error "Text block is a preview 
feature".

The editor gives the false impression that enable-preview needs to be enable 
though the properties are already set.

> Support for reading compiler VM arguments during file parsing in  Java Editor 
> For single Source file
> 
>
> Key: NETBEANS-3617
> URL: https://issues.apache.org/jira/browse/NETBEANS-3617
> Project: NetBeans
>  Issue Type: Improvement
>  Components: java - Editor
>Affects Versions: 11.1
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>
> Suppose somebody had opened a single suppose file(JEP330) and IDE is runnning 
> in JDK 13
> Sample code.
> public static void main (String args[])
> {
> String str ="""
>                   hello""";
> }
>  
> Text block is preview feature and need to set below properties in file 
> Properties->VM Args
> --enable-preview --source 13
> Once the properties are set run of the file will be okay but is the Editor,  
> the "text Block" will be marked in red showing error "Text block is a preview 
> feature".
> The editor gives the false impression that enable-preview needs to be enable 
> though the properties are already set.



--
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-3617) Support for reading compiler VM arguments during file parsing in Java Editor For single Source file

2019-12-19 Thread Arunava Sinha (Jira)
Arunava Sinha created NETBEANS-3617:
---

 Summary: Support for reading compiler VM arguments during file 
parsing in  Java Editor For single Source file
 Key: NETBEANS-3617
 URL: https://issues.apache.org/jira/browse/NETBEANS-3617
 Project: NetBeans
  Issue Type: Improvement
Reporter: Arunava Sinha






--
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] [Assigned] (NETBEANS-3617) Support for reading compiler VM arguments during file parsing in Java Editor For single Source file

2019-12-19 Thread Arunava Sinha (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arunava Sinha reassigned NETBEANS-3617:
---

Assignee: Arunava Sinha

> Support for reading compiler VM arguments during file parsing in  Java Editor 
> For single Source file
> 
>
> Key: NETBEANS-3617
> URL: https://issues.apache.org/jira/browse/NETBEANS-3617
> Project: NetBeans
>  Issue Type: Improvement
>Reporter: Arunava Sinha
>Assignee: Arunava Sinha
>Priority: Major
>




--
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-3616) Enable-Preview hint for Single Source File

2019-12-19 Thread Arunava Sinha (Jira)
Arunava Sinha created NETBEANS-3616:
---

 Summary: Enable-Preview hint for Single Source File
 Key: NETBEANS-3616
 URL: https://issues.apache.org/jira/browse/NETBEANS-3616
 Project: NetBeans
  Issue Type: Bug
  Components: java - Editor
Affects Versions: 11.1
Reporter: Arunava Sinha
Assignee: Arunava Sinha


In ant and maven java project , there is a specific hint for enablling preview 
feature.

Same is missing in Single source file.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Assigned] (NETBEANS-3579) Code completion not working inside block lambdas

2019-12-12 Thread ARUNAVA SINHA (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ARUNAVA SINHA reassigned NETBEANS-3579:
---

Assignee: ARUNAVA SINHA  (was: Arunava Sinha)

> Code completion not working inside block lambdas
> 
>
> Key: NETBEANS-3579
> URL: https://issues.apache.org/jira/browse/NETBEANS-3579
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.2
>Reporter: Jan Lahoda
>Assignee: ARUNAVA SINHA
>Priority: Critical
>
> Consider the following code ('|' should not be part of the code, and 
> represents where the caret should be placed):
> {{package org.netbeans.modules.learning.lambda.code.completion;}}
> {{import java.util.Collection;}}
> {{public class NewClass {}}
> {{    public int compute(Collection c) {}}
> {{    return c.stream().map(s -> {s.|)}}
> {{    }}}
> {{}}}
> Invoking the code completion at the marked place ('|') yields not results 
> whatsoever for me. That is apparently wrong - there should be results for a 
> variable of type String.
>  
> The IDE is a fully updated Apache NetBeans 11.2, with nb-javac installed 
> running on JDK 13:
> Product Version: Apache NetBeans IDE 11.2
> Java: 13.0.1; OpenJDK 64-Bit Server VM 13.0.1+9
> Runtime: OpenJDK Runtime Environment 13.0.1+9
> System: Linux version 4.15.0-72-generic running on amd64; UTF-8; en_US (nb)
> User directory: /tmp/nbuser.lambda.test
> Cache directory: /tmp/nbuser.lambda.test/var/cache



--
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-3367) Support for Debug in Single-File Source-Code Programs

2019-12-12 Thread ARUNAVA SINHA (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ARUNAVA SINHA updated NETBEANS-3367:

Summary: Support for Debug in  Single-File Source-Code Programs  (was: 
Support for Debug in JEP 330: Launch Single-File Source-Code Programs)

> Support for Debug in  Single-File Source-Code Programs
> --
>
> Key: NETBEANS-3367
> URL: https://issues.apache.org/jira/browse/NETBEANS-3367
> Project: NetBeans
>  Issue Type: Improvement
>  Components: debugger - Java
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Major
>
> Currently NB-11.2 supports running of single source file , but debug action 
> is missing
> [https://openjdk.java.net/jeps/330.]



--
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] [Closed] (NETBEANS-3096) NB-Javac Upgrade to JDK-13

2019-12-12 Thread ARUNAVA SINHA (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ARUNAVA SINHA closed NETBEANS-3096.
---
Resolution: Fixed

> NB-Javac Upgrade to JDK-13
> --
>
> Key: NETBEANS-3096
> URL: https://issues.apache.org/jira/browse/NETBEANS-3096
> Project: NetBeans
>  Issue Type: Task
>Affects Versions: 11.2
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.2
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> NB-11.2 will Support JDK-13. Need to upgrade nb-javac  to make it in sync 
> with JDK-13
> nb-javac link: [https://hg.netbeans.org/main/nb-java-x]



--
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-3367) Support for Debug in JEP 330: Launch Single-File Source-Code Programs

2019-11-10 Thread ARUNAVA SINHA (Jira)
ARUNAVA SINHA created NETBEANS-3367:
---

 Summary: Support for Debug in JEP 330: Launch Single-File 
Source-Code Programs
 Key: NETBEANS-3367
 URL: https://issues.apache.org/jira/browse/NETBEANS-3367
 Project: NetBeans
  Issue Type: Improvement
  Components: debugger - Java
Reporter: ARUNAVA SINHA
Assignee: ARUNAVA SINHA


Currently NB-11.2 supports running of single source file , but debug action is 
missing

[https://openjdk.java.net/jeps/330.]



--
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-3096) NB-Javac Upgrade to JDK-13

2019-09-26 Thread ARUNAVA SINHA (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16939045#comment-16939045
 ] 

ARUNAVA SINHA commented on NETBEANS-3096:
-

I am preparing new version 1.72 of nb-javac plugin for NB-11.2

> NB-Javac Upgrade to JDK-13
> --
>
> Key: NETBEANS-3096
> URL: https://issues.apache.org/jira/browse/NETBEANS-3096
> Project: NetBeans
>  Issue Type: Task
>Affects Versions: 11.2
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.2
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> NB-11.2 will Support JDK-13. Need to upgrade nb-javac  to make it in sync 
> with JDK-13
> nb-javac link: [https://hg.netbeans.org/main/nb-java-x]



--
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-3164) JDK 13 preview feature not working correctly in 11.2beta1

2019-09-26 Thread ARUNAVA SINHA (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16938353#comment-16938353
 ] 

ARUNAVA SINHA commented on NETBEANS-3164:
-

So if you are running NB in JDK-13 , and now create a new `project. Project 
will get created with  Source/Binary set to JDK-13. by default

Only if someone had an old project and wants to use text-block, then they have 
to change Source/binary to JDK-13 along with run time to JDK-13.

> JDK 13 preview feature not working correctly in 11.2beta1
> -
>
> Key: NETBEANS-3164
> URL: https://issues.apache.org/jira/browse/NETBEANS-3164
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.2
> Environment: Windows 10
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13+33, mixed mode, sharing)
> Product Version: Apache NetBeans IDE 11.2-beta1
> Java: 11.0.4; OpenJDK 64-Bit Server VM 11.0.4+11
> Runtime: OpenJDK Runtime Environment 11.0.4+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
> User directory: C:\Users\grafbe\AppData\Roaming\NetBeans\11.2-beta1
> Cache directory: C:\Users\grafbe\AppData\Local\NetBeans\Cache\11.2-beta1
>Reporter: Benjamin Graf
>Assignee: ARUNAVA SINHA
>Priority: Major
> Attachments: image-2019-09-25-20-13-45-510.png
>
>
> Try to build a simple ant based project with a multiline String.
> !image-2019-09-25-20-13-45-510.png|width=500!
>  
> Reproduce:
>  * Install beta1 from zip with fresh profile
>  * Install latest nb-javac 1.7
>  * Create new ant based Java project
>  * Add multiline String and enable preview via hint (--enable-preview)



--
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-3164) JDK 13 preview feature not working correctly in 11.2beta1

2019-09-26 Thread ARUNAVA SINHA (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16938327#comment-16938327
 ] 

ARUNAVA SINHA commented on NETBEANS-3164:
-

Consider similar situation

NB is running in JDK-8 and you are using lambda expression. Will you be able to 
compiler the file always?

Runnable run = () -> {
 throw new UnsupportedOperationException("Not supported yet."); };

 

No, you will get below error if you had set Source/Binary format to 1.7

(use -source 8 or higher to enable lambda expressions)

 

> JDK 13 preview feature not working correctly in 11.2beta1
> -
>
> Key: NETBEANS-3164
> URL: https://issues.apache.org/jira/browse/NETBEANS-3164
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.2
> Environment: Windows 10
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13+33, mixed mode, sharing)
> Product Version: Apache NetBeans IDE 11.2-beta1
> Java: 11.0.4; OpenJDK 64-Bit Server VM 11.0.4+11
> Runtime: OpenJDK Runtime Environment 11.0.4+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
> User directory: C:\Users\grafbe\AppData\Roaming\NetBeans\11.2-beta1
> Cache directory: C:\Users\grafbe\AppData\Local\NetBeans\Cache\11.2-beta1
>Reporter: Benjamin Graf
>Assignee: ARUNAVA SINHA
>Priority: Major
> Attachments: image-2019-09-25-20-13-45-510.png
>
>
> Try to build a simple ant based project with a multiline String.
> !image-2019-09-25-20-13-45-510.png|width=500!
>  
> Reproduce:
>  * Install beta1 from zip with fresh profile
>  * Install latest nb-javac 1.7
>  * Create new ant based Java project
>  * Add multiline String and enable preview via hint (--enable-preview)



--
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] [Comment Edited] (NETBEANS-3164) JDK 13 preview feature not working correctly in 11.2beta1

2019-09-26 Thread ARUNAVA SINHA (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16938314#comment-16938314
 ] 

ARUNAVA SINHA edited comment on NETBEANS-3164 at 9/26/19 6:42 AM:
--

JDK support is available from JDK-13 onward.

If someone is running NB with JDK-13 , by default project created will have  
Source/Binary format id JDK-13.(i.e., --source 13). So no issue in running 
Text-Block in JDK-13

You will get the same below error if someone tries to compile the file in 
JDK-13 in command prompt. but source version is different

/bin/java --enable-preview --source 8 NewClass.java
 error: invalid source release 8 with --enable-preview
 (preview language features are only supported for release 13)
 error: compilation failed

 

Point is NB is not restricting the user from using Text Block in older jdk 
source version, restriction is from java itself.

 


was (Author: arunava.sinha):
JDK support is available from JDK-13 onward.

If someone is running NB with JDK-13 , by default project created will have  
Source/Binary format id JDK-13.(i.e., --source 13). So no issue in running 
Text-Block in JDK-13

You will get the same below error if someone tries to compile the file in 
JDK-13 in command prompt. but source version is different

/bin/java --enable-preview --source 8 NewClass.java
 error: invalid source release 8 with --enable-preview
 (preview language features are only supported for release 13)
 error: compilation failed

 

Point is NB is not restricting the user from using Text Block from older jdk 
source version, restriction is from java itself.

 

> JDK 13 preview feature not working correctly in 11.2beta1
> -
>
> Key: NETBEANS-3164
> URL: https://issues.apache.org/jira/browse/NETBEANS-3164
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.2
> Environment: Windows 10
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13+33, mixed mode, sharing)
> Product Version: Apache NetBeans IDE 11.2-beta1
> Java: 11.0.4; OpenJDK 64-Bit Server VM 11.0.4+11
> Runtime: OpenJDK Runtime Environment 11.0.4+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
> User directory: C:\Users\grafbe\AppData\Roaming\NetBeans\11.2-beta1
> Cache directory: C:\Users\grafbe\AppData\Local\NetBeans\Cache\11.2-beta1
>Reporter: Benjamin Graf
>Assignee: ARUNAVA SINHA
>Priority: Major
> Attachments: image-2019-09-25-20-13-45-510.png
>
>
> Try to build a simple ant based project with a multiline String.
> !image-2019-09-25-20-13-45-510.png|width=500!
>  
> Reproduce:
>  * Install beta1 from zip with fresh profile
>  * Install latest nb-javac 1.7
>  * Create new ant based Java project
>  * Add multiline String and enable preview via hint (--enable-preview)



--
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] [Comment Edited] (NETBEANS-3164) JDK 13 preview feature not working correctly in 11.2beta1

2019-09-26 Thread ARUNAVA SINHA (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16938314#comment-16938314
 ] 

ARUNAVA SINHA edited comment on NETBEANS-3164 at 9/26/19 6:37 AM:
--

JDK support is available from JDK-13 onward.

If someone is running NB with JDK-13 , by default project created will have  
Source/Binary format id JDK-13.(i.e., --source 13). So no issue in running 
Text-Block in JDK-13

You will get the same below error if someone tries to compile the file in 
JDK-13 in command prompt. but source version is different

/bin/java --enable-preview --source 8 NewClass.java
 error: invalid source release 8 with --enable-preview
 (preview language features are only supported for release 13)
 error: compilation failed

 

Point is NB is not restricting the user from using Text Block from older jdk 
source version, restriction is from java itself.

 


was (Author: arunava.sinha):
JDK support is available from JDK-13 onward.

If someone is running NB with JDK-13 , by default project created will have  
Source/Binary format id JDK-13.(i.e., --source 13).

You will get the same below error if someone tries to compile the file in 
JDK-13 in command prompt.

/bin/java --enable-preview --source 8 NewClass.java
 error: invalid source release 8 with --enable-preview
 (preview language features are only supported for release 13)
 error: compilation failed

 

Point is NB is not restricting the user from using Text Block from older jdk 
source version, restriction is from java itself.

 

> JDK 13 preview feature not working correctly in 11.2beta1
> -
>
> Key: NETBEANS-3164
> URL: https://issues.apache.org/jira/browse/NETBEANS-3164
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.2
> Environment: Windows 10
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13+33, mixed mode, sharing)
> Product Version: Apache NetBeans IDE 11.2-beta1
> Java: 11.0.4; OpenJDK 64-Bit Server VM 11.0.4+11
> Runtime: OpenJDK Runtime Environment 11.0.4+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
> User directory: C:\Users\grafbe\AppData\Roaming\NetBeans\11.2-beta1
> Cache directory: C:\Users\grafbe\AppData\Local\NetBeans\Cache\11.2-beta1
>Reporter: Benjamin Graf
>Assignee: ARUNAVA SINHA
>Priority: Major
> Attachments: image-2019-09-25-20-13-45-510.png
>
>
> Try to build a simple ant based project with a multiline String.
> !image-2019-09-25-20-13-45-510.png|width=500!
>  
> Reproduce:
>  * Install beta1 from zip with fresh profile
>  * Install latest nb-javac 1.7
>  * Create new ant based Java project
>  * Add multiline String and enable preview via hint (--enable-preview)



--
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] [Comment Edited] (NETBEANS-3164) JDK 13 preview feature not working correctly in 11.2beta1

2019-09-26 Thread ARUNAVA SINHA (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16938314#comment-16938314
 ] 

ARUNAVA SINHA edited comment on NETBEANS-3164 at 9/26/19 6:36 AM:
--

JDK support is available from JDK-13 onward.

If someone is running NB with JDK-13 , by default project created will have  
Source/Binary format id JDK-13.(i.e., --source 13).

You will get the same below error if someone tries to compile the file in 
JDK-13 in command prompt.

/bin/java --enable-preview --source 8 NewClass.java
 error: invalid source release 8 with --enable-preview
 (preview language features are only supported for release 13)
 error: compilation failed

 

Point is NB is not restricting the user from using Text Block from older jdk 
source version, restriction is from java itself.

 


was (Author: arunava.sinha):
JDK support is available from JDk-13 onward.

If someone is running NB with JDK-13 , by default project created will have  
Source/Binary format id JDK-13.(i.e., --source 13).

You will get the same below error if someone tries to compile the file in 
JDK-13 in command prompt.

/bin/java --enable-preview --source 8 NewClass.java
error: invalid source release 8 with --enable-preview
 (preview language features are only supported for release 13)
error: compilation failed

 

Point is NB is not restricting the user from using Text Block from older jdk 
source version, restriction is from java itself.

 

> JDK 13 preview feature not working correctly in 11.2beta1
> -
>
> Key: NETBEANS-3164
> URL: https://issues.apache.org/jira/browse/NETBEANS-3164
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.2
> Environment: Windows 10
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13+33, mixed mode, sharing)
> Product Version: Apache NetBeans IDE 11.2-beta1
> Java: 11.0.4; OpenJDK 64-Bit Server VM 11.0.4+11
> Runtime: OpenJDK Runtime Environment 11.0.4+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
> User directory: C:\Users\grafbe\AppData\Roaming\NetBeans\11.2-beta1
> Cache directory: C:\Users\grafbe\AppData\Local\NetBeans\Cache\11.2-beta1
>Reporter: Benjamin Graf
>Assignee: ARUNAVA SINHA
>Priority: Major
> Attachments: image-2019-09-25-20-13-45-510.png
>
>
> Try to build a simple ant based project with a multiline String.
> !image-2019-09-25-20-13-45-510.png|width=500!
>  
> Reproduce:
>  * Install beta1 from zip with fresh profile
>  * Install latest nb-javac 1.7
>  * Create new ant based Java project
>  * Add multiline String and enable preview via hint (--enable-preview)



--
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-3164) JDK 13 preview feature not working correctly in 11.2beta1

2019-09-26 Thread ARUNAVA SINHA (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16938314#comment-16938314
 ] 

ARUNAVA SINHA commented on NETBEANS-3164:
-

JDK support is available from JDk-13 onward.

If someone is running NB with JDK-13 , by default project created will have  
Source/Binary format id JDK-13.(i.e., --source 13).

You will get the same below error if someone tries to compile the file in 
JDK-13 in command prompt.

/bin/java --enable-preview --source 8 NewClass.java
error: invalid source release 8 with --enable-preview
 (preview language features are only supported for release 13)
error: compilation failed

 

Point is NB is not restricting the user from using Text Block from older jdk 
source version, restriction is from java itself.

 

> JDK 13 preview feature not working correctly in 11.2beta1
> -
>
> Key: NETBEANS-3164
> URL: https://issues.apache.org/jira/browse/NETBEANS-3164
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.2
> Environment: Windows 10
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13+33, mixed mode, sharing)
> Product Version: Apache NetBeans IDE 11.2-beta1
> Java: 11.0.4; OpenJDK 64-Bit Server VM 11.0.4+11
> Runtime: OpenJDK Runtime Environment 11.0.4+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
> User directory: C:\Users\grafbe\AppData\Roaming\NetBeans\11.2-beta1
> Cache directory: C:\Users\grafbe\AppData\Local\NetBeans\Cache\11.2-beta1
>Reporter: Benjamin Graf
>Assignee: ARUNAVA SINHA
>Priority: Major
> Attachments: image-2019-09-25-20-13-45-510.png
>
>
> Try to build a simple ant based project with a multiline String.
> !image-2019-09-25-20-13-45-510.png|width=500!
>  
> Reproduce:
>  * Install beta1 from zip with fresh profile
>  * Install latest nb-javac 1.7
>  * Create new ant based Java project
>  * Add multiline String and enable preview via hint (--enable-preview)



--
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-3164) JDK 13 preview feature not working correctly in 11.2beta1

2019-09-25 Thread ARUNAVA SINHA (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16938294#comment-16938294
 ] 

ARUNAVA SINHA commented on NETBEANS-3164:
-

If Someone runs NB with jdk-13 but Source/Binary format id JDK-8 then he will 
encounter below error:

 String str = """
 hello""";

text blocks are not supported in -source 8
 (use -source 13 or higher to enable text blocks)

';' expected

(Alt-Enter shows hints)

 

Also auto-completion of triple quotes will work only if Source/Binary format id 
JDK-13 and NB is running in JDK-13

 

In project.properties, you need to set below to be able to run and compile the 
project.

javac.compilerargs=\ --enable-preview

run.jvmargs=\ --enable-preview

 

So to use Text Block , NB should run with JDK-13 and   Source/Binary format  
should be JDK-13.

Also need to add --enable-preview flag in run/compiler argument. No need to do 
this manually, there is a hint Enable Preview who will do this job.

 

  

> JDK 13 preview feature not working correctly in 11.2beta1
> -
>
> Key: NETBEANS-3164
> URL: https://issues.apache.org/jira/browse/NETBEANS-3164
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.2
> Environment: Windows 10
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13+33, mixed mode, sharing)
> Product Version: Apache NetBeans IDE 11.2-beta1
> Java: 11.0.4; OpenJDK 64-Bit Server VM 11.0.4+11
> Runtime: OpenJDK Runtime Environment 11.0.4+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
> User directory: C:\Users\grafbe\AppData\Roaming\NetBeans\11.2-beta1
> Cache directory: C:\Users\grafbe\AppData\Local\NetBeans\Cache\11.2-beta1
>Reporter: Benjamin Graf
>Assignee: ARUNAVA SINHA
>Priority: Major
> Attachments: image-2019-09-25-20-13-45-510.png
>
>
> Try to build a simple ant based project with a multiline String.
> !image-2019-09-25-20-13-45-510.png|width=500!
>  
> Reproduce:
>  * Install beta1 from zip with fresh profile
>  * Install latest nb-javac 1.7
>  * Create new ant based Java project
>  * Add multiline String and enable preview via hint (--enable-preview)



--
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-3096) NB-Javac Upgrade to JDK-13

2019-09-20 Thread ARUNAVA SINHA (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16934883#comment-16934883
 ] 

ARUNAVA SINHA commented on NETBEANS-3096:
-

Yeah, I am working on the nb-javac plugin , It will be available soon

> NB-Javac Upgrade to JDK-13
> --
>
> Key: NETBEANS-3096
> URL: https://issues.apache.org/jira/browse/NETBEANS-3096
> Project: NetBeans
>  Issue Type: Task
>Affects Versions: 11.2
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.2
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> NB-11.2 will Support JDK-13. Need to upgrade nb-javac  to make it in sync 
> with JDK-13
> nb-javac link: [https://hg.netbeans.org/main/nb-java-x]



--
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-3099) Test-Cases Failures in JDK-13 nb-javac

2019-09-15 Thread ARUNAVA SINHA (Jira)
ARUNAVA SINHA created NETBEANS-3099:
---

 Summary: Test-Cases Failures in JDK-13 nb-javac
 Key: NETBEANS-3099
 URL: https://issues.apache.org/jira/browse/NETBEANS-3099
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 11.2
Reporter: ARUNAVA SINHA


Below Test-cases needs to be corrected  which are failing in JDK-13

 

[junit] Testcase: 
testTextBlock1(org.netbeans.modules.editor.java.TypingCompletionUnitTest): 
Caused an ERROR
 [junit] Testcase: 
testTextBlock4(org.netbeans.modules.editor.java.TypingCompletionUnitTest): 
Caused an ERROR
 [junit] Testcase: 
testTextBlock5(org.netbeans.modules.editor.java.TypingCompletionUnitTest): 
Caused an ERROR"
 [junit] Testcase: 
testYield(org.netbeans.modules.java.editor.base.semantic.DetectorTest): Caused 
an ERROR
 [junit] Testcase: 
testRawStringLiteral(org.netbeans.modules.java.editor.base.semantic.DetectorTest):
 Caused an ERROR"
 [junit] Testcase: 
testCase1(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
Caused an ERROR
 [junit] Testcase: 
testCase2(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
Caused an ERROR
 [junit] Testcase: 
testCase3(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
Caused an ERROR
 [junit] Testcase: 
testCase4(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
Caused an ERROR
 [junit] Testcase: 
testCase5(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
Caused an ERROR
 [junit] Testcase: 
testCase6(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
Caused an ERROR
 [junit] Testcase: 
testCase7(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
Caused an ERROR
 [junit] Testcase: 
testCase8(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
Caused an ERROR
 [junit] Testcase: 
testCase9(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
Caused an ERROR
 [junit] Testcase: 
testCase10(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
Caused an ERROR
 [junit] Testcase: 
testCase11(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): 
Caused an ERROR
 [junit] Testcase: 
testNewLinesAtEnd(org.netbeans.modules.java.hints.jdk.ConvertToTextBlockTest): 
Caused an ERROR
 [junit] Testcase: 
testNewLineAtEnd(org.netbeans.modules.java.hints.jdk.ConvertToTextBlockTest): 
Caused an ERROR
 [junit] Testcase: 
testFixWorking(org.netbeans.modules.java.hints.jdk.ConvertToTextBlockTest): 
Caused an ERROR
 [junit] Testcase: test175535(org.netbeans.api.java.source.ElementsTest): 
Caused an ERROR
 [junit] Testcase: 
testTextBlocksNew(org.netbeans.api.java.source.gen.LiteralTest): Caused an 
ERROR"



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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-2207) Removing (old) javadoc from nb-javac for JDK-13

2019-09-15 Thread ARUNAVA SINHA (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ARUNAVA SINHA resolved NETBEANS-2207.
-
Fix Version/s: (was: 12.0)
   11.1
   Resolution: Fixed

> Removing (old) javadoc from nb-javac for JDK-13
> ---
>
> Key: NETBEANS-2207
> URL: https://issues.apache.org/jira/browse/NETBEANS-2207
> Project: NetBeans
>  Issue Type: Bug
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Major
> Fix For: 11.1
>
>
> nb-javac currently provides the "old" javadoc API (com.sun.javadoc.**), which 
> is used on several places inside NetBeans. 
>  
>  But, that API has been removed from JDK 13: 
>  [https://bugs.openjdk.java.net/browse/JDK-8215584] 
>  
>  So, we cannot really use the API anymore for JDK 13 and beyond
> So support for the same has to be removed in nb-javac



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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-3082) Formatting issue on use of Switch-Expression

2019-09-15 Thread ARUNAVA SINHA (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ARUNAVA SINHA resolved NETBEANS-3082.
-
Resolution: Fixed

> Formatting issue on use of Switch-Expression
> 
>
> Key: NETBEANS-3082
> URL: https://issues.apache.org/jira/browse/NETBEANS-3082
> Project: NetBeans
>  Issue Type: Improvement
>Affects Versions: 11.1
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Suppose We have below  Code Snippet
>  
> int a = switch(1)
> { default : yield 1 };
> System.out.println(a);
>  
> Expressions/Statements used after Switch-Expression are getting wrongly 
> indented.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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-3078) Error hint to fix the '--enable-preview' features in Java Ant Project

2019-09-15 Thread ARUNAVA SINHA (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ARUNAVA SINHA resolved NETBEANS-3078.
-
Resolution: Fixed

> Error hint to fix the '--enable-preview' features in Java Ant Project
> -
>
> Key: NETBEANS-3078
> URL: https://issues.apache.org/jira/browse/NETBEANS-3078
> Project: NetBeans
>  Issue Type: Improvement
>  Components: java - Editor
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.2
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Suppose we had used switch-expression in Java application (JDK-12)
> e.g.,
> int a = switch (num)
> {      case 1 ->1;     default->2; }
> ;
> It will show the below error:
> switch expressions are a preview feature and are disabled by default.
> (use --enable-preview to enable switch expressions)
>  
> NetBeans doesn't provide the fix.
> Currently manually need to add '--enable-preview" in ant configuration file .



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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-3097) Changing font-color type name for text-block(JDK-13)

2019-09-13 Thread ARUNAVA SINHA (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ARUNAVA SINHA resolved NETBEANS-3097.
-
Resolution: Fixed

> Changing font-color type name for text-block(JDK-13)
> 
>
> Key: NETBEANS-3097
> URL: https://issues.apache.org/jira/browse/NETBEANS-3097
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
>Affects Versions: 11.2
>Reporter: ARUNAVA SINHA
>Assignee: ARUNAVA SINHA
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.2
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> Currently font-color type names can be viewed from
> Tools -> Options->Fonts & Colors ->  Syntax Tab  Language : Java -> Category
> for text-block type name used is "mod-unindented-text-block"
> It would be better is be use type name as "text-block"
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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-3097) Changing font-color type name for text-block(JDK-13)

2019-09-13 Thread ARUNAVA SINHA (Jira)
ARUNAVA SINHA created NETBEANS-3097:
---

 Summary: Changing font-color type name for text-block(JDK-13)
 Key: NETBEANS-3097
 URL: https://issues.apache.org/jira/browse/NETBEANS-3097
 Project: NetBeans
  Issue Type: Bug
  Components: java - Editor
Affects Versions: 11.2
Reporter: ARUNAVA SINHA
Assignee: ARUNAVA SINHA
 Fix For: 11.2


Currently font-color type names can be viewed from

Tools -> Options->Fonts & Colors ->  Syntax Tab  Language : Java -> Category

for text-block type name used is "mod-unindented-text-block"

It would be better is be use type name as "text-block"

 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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



  1   2   3   4   >