svn commit: r49905 - in /dev/netbeans/netbeans-vscode-ext/12.5: ./ apache-netbeans-java-12.5.0.vsix apache-netbeans-java-12.5.0.vsix.asc apache-netbeans-java-12.5.0.vsix.sha512

2021-09-12 Thread jtulach
Author: jtulach
Date: Mon Sep 13 05:51:16 2021
New Revision: 49905

Log:
Staging the 12.5 NetBeans .vsix extension bits

Added:
dev/netbeans/netbeans-vscode-ext/12.5/
dev/netbeans/netbeans-vscode-ext/12.5/apache-netbeans-java-12.5.0.vsix   
(with props)
dev/netbeans/netbeans-vscode-ext/12.5/apache-netbeans-java-12.5.0.vsix.asc

dev/netbeans/netbeans-vscode-ext/12.5/apache-netbeans-java-12.5.0.vsix.sha512

Added: dev/netbeans/netbeans-vscode-ext/12.5/apache-netbeans-java-12.5.0.vsix
==
Binary file - no diff available.

Propchange: 
dev/netbeans/netbeans-vscode-ext/12.5/apache-netbeans-java-12.5.0.vsix
--
svn:mime-type = application/octet-stream

Added: 
dev/netbeans/netbeans-vscode-ext/12.5/apache-netbeans-java-12.5.0.vsix.asc
==
--- dev/netbeans/netbeans-vscode-ext/12.5/apache-netbeans-java-12.5.0.vsix.asc 
(added)
+++ dev/netbeans/netbeans-vscode-ext/12.5/apache-netbeans-java-12.5.0.vsix.asc 
Mon Sep 13 05:51:16 2021
@@ -0,0 +1,16 @@
+-BEGIN PGP SIGNATURE-
+
+iQIzBAABCgAdFiEETxTvPki77GNgjX6yE1SNfMr66A0FAmE+5igACgkQE1SNfMr6
+6A3texAAi12TiNB/Q1CUcp+UP0CSpCv0mejYQ0BD/kSZGCj3I+ZK1AUYp0sz3w0R
+7FjR6y0SRN+Zd/WgInQgDWIGRQTxAY5E7Qtgqt1XO2anRaYPCoohheeQblWkCBQG
+L9PNgYfiUqkMB/U0NQMdrd0bY/qfIk7WPu7gnoEa4I35Ys+7CdSYTsJuHCuW6gdG
+UR6eS4YyA3xJmVKDcUE6pJp+31XvYBqqnHVxpa/JatOKOilftByr1aZUffCXjhHV
+dFDi39M2aztzBBkAYPO4E4EqB54hIDk/L7DhrjcR6Uy3W4dKLF6osvt0R0XZX23Z
+3+YvykltyXMx/5TCrcXlUM8+BmdW8SuiLfLDB+UU3JY5cs1w0lXeCm5n1VLeiKRc
+XhKR3POkEsaRgpRqh40vosuYOLBcBvRFeGDeYdeteypNw2HsOCYDRep441RR+irE
+BkMAbsw4DfJwWgyhP1HRti/FEjVI3BWC8TNWe7rX2+EFk7nCNzrkvdt2nmcRP3FC
+m8BWswsaBmQ4wFsdQc0x2VqT623RAIkXiNgRwvJsUMe/6YO0LYwJC9pvpoBZuLKr
+ibZTrWaQerZbOmv4sRbs3EGzbvZt/hyc3q0Hj+pvoACBkgON/is8zXvWqeTriULA
+VhNFx+rQYoNRV/rOGF5M18oDgkGl6yyRz9jlmGZYi8kjRym+WYI=
+=Q1VQ
+-END PGP SIGNATURE-

Added: 
dev/netbeans/netbeans-vscode-ext/12.5/apache-netbeans-java-12.5.0.vsix.sha512
==
--- 
dev/netbeans/netbeans-vscode-ext/12.5/apache-netbeans-java-12.5.0.vsix.sha512 
(added)
+++ 
dev/netbeans/netbeans-vscode-ext/12.5/apache-netbeans-java-12.5.0.vsix.sha512 
Mon Sep 13 05:51:16 2021
@@ -0,0 +1 @@
+ed5a06bdb55484c84399372592c182e34c5dbbc4d8c2fc9748f30b2bd0c941bb71d8fbf3ce8bbee710788611c0c0ef07c9e499cdeed47b05664c4f47bf5cd56d
  apache-netbeans-java-12.5.0.vsix



-
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-2443) Can't start profiler

2021-09-12 Thread Bernard (Jira)


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

Bernard commented on NETBEANS-2443:
---

With IDE 12.4 on Windows, if I extract and run it in a directory without 
spaces, then with bundled Maven I get a different error "The syntax of the 
command is incorrect.".

But then at least I can get around this error by using the older Maven version 
3.3.9.

So we have TWO issues. At least one is a Maven issue. I also remember this 
vaguely from about a year ago because I used this workaround then with IDE 12.3 
I think. From my notes then (sorry I am getting tired, have to go back to 
sleep):

https://issues.maven.apache.narkive.com/u1YebYNI/jira-created-mng-6385-windows-mvn-cmd-fail-with-incorrect-command-syntax
[https://stackoverflow.com/questions/13756224/splitting-the-parameter-in-a-batch-file-multiple-times/13779820#13779820]

This is the sort of thing that happens if one lets things slip for too long. 
Total meltdown. I would suggest to create a blocking dependency such as NOT to 
ship a Windows installer until it is verified that the profiler works WITH THE 
BUNDLED MAVEN VERSION.

In other words this has to be escalated and cannot be dealt with purely by 
looking at the profiler alone.

> Can't start profiler
> 
>
> Key: NETBEANS-2443
> URL: https://issues.apache.org/jira/browse/NETBEANS-2443
> Project: NetBeans
>  Issue Type: Bug
>  Components: profiler - Attach, profiler - Base, profiler - Engine, 
> profiler - IDE
>Affects Versions: 11.0, 12.3, 12.4
> Environment: Windows 10
> NetBeans 11 using Java 12 (tried with 8 also)
>Reporter: HenryDL
>Priority: Blocker
>  Labels: pull-request-available
> Attachments: image-2020-07-06-19-01-34-316.png, 
> image-2021-07-21-02-56-43-096.png, image-2021-07-21-02-57-38-437.png, 
> image-2021-07-21-02-58-15-148.png, image-2021-07-21-02-59-19-737.png, 
> image-2021-07-21-02-59-42-180.png, image-2021-07-21-03-01-40-283.png, 
> image-2021-07-21-03-02-51-206.png, image-2021-07-21-03-03-15-783.png, 
> image-2021-07-21-03-04-15-005.png, image-2021-07-21-03-05-35-690.png
>
>  Time Spent: 4h 10m
>  Remaining Estimate: 0h
>
> I'm not able to start the NetBeans Profiler for Maven projects.
> *Recreate:*
>  # Create a new Maven Java Application using the IDE.
>  # Using the IDE add a new JFrame file (it contains a main method that simply 
> opens the a new JFrame).
>  # Right-click the new project and select _Profile_.
>  # This opens a Profiler tab. Do the calibration, then press the Profile 
> button at the top of the tab. A _Progress_ popup appears thatgets stuck on 
> the message "Connecting to the target VM...". The _Output_ tab shows a 
> message: "The syntax of the command is incorrect.".
> *Error (in Output tab):*
> {noformat}
> cd C:\_Code\TEMP_CODE\mavenproject1; "JAVA_HOME=C:\\Program 
> Files\\Java\\jdk-12" M2_HOME=C:\\_Code\\_TOOLS\\apache-maven-3.6.0 cmd /c 
> "\"\"C:\\_Code\\_TOOLS\\apache-maven-3.6.0\\bin\\mvn.cmd\" 
> -Dexec.args=\"-agentpath:\\\"C:/_Code/_TOOLS/netbeans 
> 11.0/profiler/lib/deployed/jdk16/windows-amd64/profilerinterface.dll\\\"=\\\"C:\\_Code\\_TOOLS\\netbeans
>  11.0\\profiler\\lib\\\",5140,10 -XX:+HeapDumpOnOutOfMemoryError 
> -XX:HeapDumpPath=C:\\Users\\Henry\\AppData\\Local\\NetBeans\\Cache\\11.0\\mavencachedirs\\645799279\\org-netbeans-modules-profiler
>  -classpath %classpath com.mycompany.mavenproject1.NewJFrame\" 
> -Dexec.executable=\"C:\\Program Files\\Java\\jdk-12\\bin\\java.exe\" 
> -Dmaven.ext.class.path=\"C:\\_Code\\_TOOLS\\netbeans 
> 11.0\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 
> process-classes org.codehaus.mojo:exec-maven-plugin:1.5.0:exec\""
> The syntax of the command is incorrect.
> {noformat}



--
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-2443) Can't start profiler

2021-09-12 Thread Bernard (Jira)


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

Bernard commented on NETBEANS-2443:
---

Tried again with NetBeans 12.4 and bundled Maven. Breaks. I get output:
Files\NetBeans-12.4\netbeans\profiler\lib\\"" was unexpected at this time.

The beginning of the line is the truncated "C:\Program Files\NetBeans-12.4 ..."

I would not know whether this is actually a NetBeans problem or a Maven problem 
because the error output is different depending on which Maven version is used.

This is sad because NetBeans has switched to Maven as its main / preferred 
build system.

So clearly we cannot deal with spaces in paths. We Java people are stupid. We 
cannot even get out of bed. Let alone deal with complex programs. Back to 
sleep. Good night... ZZ

> Can't start profiler
> 
>
> Key: NETBEANS-2443
> URL: https://issues.apache.org/jira/browse/NETBEANS-2443
> Project: NetBeans
>  Issue Type: Bug
>  Components: profiler - Attach, profiler - Base, profiler - Engine, 
> profiler - IDE
>Affects Versions: 11.0, 12.3, 12.4
> Environment: Windows 10
> NetBeans 11 using Java 12 (tried with 8 also)
>Reporter: HenryDL
>Priority: Blocker
>  Labels: pull-request-available
> Attachments: image-2020-07-06-19-01-34-316.png, 
> image-2021-07-21-02-56-43-096.png, image-2021-07-21-02-57-38-437.png, 
> image-2021-07-21-02-58-15-148.png, image-2021-07-21-02-59-19-737.png, 
> image-2021-07-21-02-59-42-180.png, image-2021-07-21-03-01-40-283.png, 
> image-2021-07-21-03-02-51-206.png, image-2021-07-21-03-03-15-783.png, 
> image-2021-07-21-03-04-15-005.png, image-2021-07-21-03-05-35-690.png
>
>  Time Spent: 4h 10m
>  Remaining Estimate: 0h
>
> I'm not able to start the NetBeans Profiler for Maven projects.
> *Recreate:*
>  # Create a new Maven Java Application using the IDE.
>  # Using the IDE add a new JFrame file (it contains a main method that simply 
> opens the a new JFrame).
>  # Right-click the new project and select _Profile_.
>  # This opens a Profiler tab. Do the calibration, then press the Profile 
> button at the top of the tab. A _Progress_ popup appears thatgets stuck on 
> the message "Connecting to the target VM...". The _Output_ tab shows a 
> message: "The syntax of the command is incorrect.".
> *Error (in Output tab):*
> {noformat}
> cd C:\_Code\TEMP_CODE\mavenproject1; "JAVA_HOME=C:\\Program 
> Files\\Java\\jdk-12" M2_HOME=C:\\_Code\\_TOOLS\\apache-maven-3.6.0 cmd /c 
> "\"\"C:\\_Code\\_TOOLS\\apache-maven-3.6.0\\bin\\mvn.cmd\" 
> -Dexec.args=\"-agentpath:\\\"C:/_Code/_TOOLS/netbeans 
> 11.0/profiler/lib/deployed/jdk16/windows-amd64/profilerinterface.dll\\\"=\\\"C:\\_Code\\_TOOLS\\netbeans
>  11.0\\profiler\\lib\\\",5140,10 -XX:+HeapDumpOnOutOfMemoryError 
> -XX:HeapDumpPath=C:\\Users\\Henry\\AppData\\Local\\NetBeans\\Cache\\11.0\\mavencachedirs\\645799279\\org-netbeans-modules-profiler
>  -classpath %classpath com.mycompany.mavenproject1.NewJFrame\" 
> -Dexec.executable=\"C:\\Program Files\\Java\\jdk-12\\bin\\java.exe\" 
> -Dmaven.ext.class.path=\"C:\\_Code\\_TOOLS\\netbeans 
> 11.0\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 
> process-classes org.codehaus.mojo:exec-maven-plugin:1.5.0:exec\""
> The syntax of the command is incorrect.
> {noformat}



--
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-2443) Can't start profiler

2021-09-12 Thread Bernard (Jira)


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

Bernard updated NETBEANS-2443:
--
Affects Version/s: 12.4

> Can't start profiler
> 
>
> Key: NETBEANS-2443
> URL: https://issues.apache.org/jira/browse/NETBEANS-2443
> Project: NetBeans
>  Issue Type: Bug
>  Components: profiler - Attach, profiler - Base, profiler - Engine, 
> profiler - IDE
>Affects Versions: 11.0, 12.3, 12.4
> Environment: Windows 10
> NetBeans 11 using Java 12 (tried with 8 also)
>Reporter: HenryDL
>Priority: Blocker
>  Labels: pull-request-available
> Attachments: image-2020-07-06-19-01-34-316.png, 
> image-2021-07-21-02-56-43-096.png, image-2021-07-21-02-57-38-437.png, 
> image-2021-07-21-02-58-15-148.png, image-2021-07-21-02-59-19-737.png, 
> image-2021-07-21-02-59-42-180.png, image-2021-07-21-03-01-40-283.png, 
> image-2021-07-21-03-02-51-206.png, image-2021-07-21-03-03-15-783.png, 
> image-2021-07-21-03-04-15-005.png, image-2021-07-21-03-05-35-690.png
>
>  Time Spent: 4h 10m
>  Remaining Estimate: 0h
>
> I'm not able to start the NetBeans Profiler for Maven projects.
> *Recreate:*
>  # Create a new Maven Java Application using the IDE.
>  # Using the IDE add a new JFrame file (it contains a main method that simply 
> opens the a new JFrame).
>  # Right-click the new project and select _Profile_.
>  # This opens a Profiler tab. Do the calibration, then press the Profile 
> button at the top of the tab. A _Progress_ popup appears thatgets stuck on 
> the message "Connecting to the target VM...". The _Output_ tab shows a 
> message: "The syntax of the command is incorrect.".
> *Error (in Output tab):*
> {noformat}
> cd C:\_Code\TEMP_CODE\mavenproject1; "JAVA_HOME=C:\\Program 
> Files\\Java\\jdk-12" M2_HOME=C:\\_Code\\_TOOLS\\apache-maven-3.6.0 cmd /c 
> "\"\"C:\\_Code\\_TOOLS\\apache-maven-3.6.0\\bin\\mvn.cmd\" 
> -Dexec.args=\"-agentpath:\\\"C:/_Code/_TOOLS/netbeans 
> 11.0/profiler/lib/deployed/jdk16/windows-amd64/profilerinterface.dll\\\"=\\\"C:\\_Code\\_TOOLS\\netbeans
>  11.0\\profiler\\lib\\\",5140,10 -XX:+HeapDumpOnOutOfMemoryError 
> -XX:HeapDumpPath=C:\\Users\\Henry\\AppData\\Local\\NetBeans\\Cache\\11.0\\mavencachedirs\\645799279\\org-netbeans-modules-profiler
>  -classpath %classpath com.mycompany.mavenproject1.NewJFrame\" 
> -Dexec.executable=\"C:\\Program Files\\Java\\jdk-12\\bin\\java.exe\" 
> -Dmaven.ext.class.path=\"C:\\_Code\\_TOOLS\\netbeans 
> 11.0\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 
> process-classes org.codehaus.mojo:exec-maven-plugin:1.5.0:exec\""
> The syntax of the command is incorrect.
> {noformat}



--
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-5998) Unable to create new projects after selection of Java ANT& JAVA application from NetBeans 12.0, 12.4.

2021-09-12 Thread Sangeeta Nandy (Jira)
Sangeeta Nandy created NETBEANS-5998:


 Summary: Unable to create new projects after selection of Java 
ANT& JAVA application from NetBeans 12.0, 12.4.
 Key: NETBEANS-5998
 URL: https://issues.apache.org/jira/browse/NETBEANS-5998
 Project: NetBeans
  Issue Type: Bug
Reporter: Sangeeta Nandy
 Attachments: UI Log.txt

Unable to create new projects after selection of Java ANT& JAVA application 
from NetBeans 12.0, 12.4.

After clicking on Finish, the window remain freeze, not opening project window.

JAVA JDK used is 16.

 

UI Log attached herewith.



--
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-5996) Code highlighting and error checking stop working when method reference passed as a parameter where it should't be.

2021-09-12 Thread Aliaksandr Rasolka (Jira)


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

Aliaksandr Rasolka updated NETBEANS-5996:
-
Description: 
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\User\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 
...
Please report a bug against java/source and attach dump file 
'C:\Users\User\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.
...
Caused by: java.lang.IllegalStateException: java.lang.ClassCastException  
at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
  
at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
  
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
  
at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
  
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)  
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) 
 
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)  
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Caused by: java.lang.ClassCastException
...{noformat}
 

>From *UserDao* I call method
{code:java}
public  List processMultipleResultsSelectRequest(
String sql,
PreparedStatementContainerInitializer statementInitializer,
Supplier entityCreator,
EntityInitializer entityInitializer) throws DaoException {
...
}{code}
I pass reference to constructor as *entityCreator* parameter.
 If I place parameters correctly:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
"some SQL String",
null,
User::new,
this::initUser);
{code}
, everything works just fine.

However, I've found that if I swap parameters by mistake and do something like 
that:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
"some SQL String",
User::new,
null,
this::initUser);
{code}
, instead of highlighting my mistake, I get an error message from IDE.

 

IDE log and UI log are attached in case there is something useful inside. I 
copied text from them a bit earlier so there might be mentioned some other 
UserDao_XXX.dump.

UserDao_150.dump attached since it was requested by IDE.

 

  was:
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\User\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 
...
Please report a bug against java/source and attach dump file 
'C:\Users\User\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.
...
Caused by: java.lang.IllegalStateException: java.lang.ClassCastException  
at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
  
at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
  
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
  
at 

[jira] [Commented] (NETBEANS-2360) HiDPI scaling (and anti-aliasing on KDE) not applied automatically on Linux

2021-09-12 Thread Eirik Bakke (Jira)


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

Eirik Bakke commented on NETBEANS-2360:
---

Thanks, that is useful! Are all your other KDE apps scaled 2x? I.e. have you 
configured a HiDPI scaling somewhere in the KDE settings? Is there a "control 
panel" setting or such that this is configured from?

It would be useful to find out if there's another bash command that can be used 
to detect the desired scale factor, on your particular setup.

(And now I'm wondering if the NetBeans launch script should be setting 
sun.java2d.uiScale rather than GDK_SCALE... the former seems to support 
fractional scaling factors, and not just 2x scaling.)

> HiDPI scaling (and anti-aliasing on KDE) not applied automatically on Linux
> ---
>
> Key: NETBEANS-2360
> URL: https://issues.apache.org/jira/browse/NETBEANS-2360
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - LaunchersCLI
>Affects Versions: 11.0, 12.2
> Environment: Kubuntu 18.03
> Oracle JDK 11.0.2
>Reporter: Eirik Bakke
>Priority: Major
>  Labels: HiDPI, Linux, pull-request-available
> Attachments: image-2021-09-12-21-01-33-807.png, 
> image-2021-09-12-21-05-06-852.png, kubunt.jpg
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> Running NetBeans 11 on Kubuntu 18.03, GUI text size does not seem to take 
> into account the system's default HiDPI scaling. This was reported in a 
> Twitter thread on https://twitter.com/nicktail/status/1114789604337405952 . 
> Note that Window decorations seem to be the correct size.
> Setting the GDK_SCALE environment variable seems to fix the problem, if I 
> understand the originally reporter correctly. This could probably be done 
> easily from the NetBeans launcher script (netbeans/bin). But it wouldn't fix 
> the problem in multi-monitor setups. We should investigate what could be done 
> to make scaling work properly in multi-monitor setups involving one HiDPI 
> screen and one non-HiDPI screen.
> Before merging a patch to the launcher script, it should be tested on a 
> couple of different Linux environments, using both HiDPI and non-HiDPI 
> screens. Note that the UNIX launcher script is also used on MacOS.



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

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

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



[netbeans] branch master updated: [NETBEANS-3196] Fix lazy Node loading when switching from Children.LEAF to another Children instance.

2021-09-12 Thread ebakke
This is an automated email from the ASF dual-hosted git repository.

ebakke pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
 new 10ee83e  [NETBEANS-3196] Fix lazy Node loading when switching from 
Children.LEAF to another Children instance.
10ee83e is described below

commit 10ee83e26eda5327aaac4682f92bac6a9f80d23b
Author: Eirik Bakke 
AuthorDate: Fri Oct 4 04:06:28 2019 -0400

[NETBEANS-3196] Fix lazy Node loading when switching from Children.LEAF to 
another Children instance.

Added a new unit test which failed before the fix and passes after the fix.
---
 .../openide.nodes/src/org/openide/nodes/Node.java  |   2 +-
 .../src/org/openide/nodes/LazyNodeTest3196.java| 131 +
 2 files changed, 132 insertions(+), 1 deletion(-)

diff --git a/platform/openide.nodes/src/org/openide/nodes/Node.java 
b/platform/openide.nodes/src/org/openide/nodes/Node.java
index 569d57f..c78889e 100644
--- a/platform/openide.nodes/src/org/openide/nodes/Node.java
+++ b/platform/openide.nodes/src/org/openide/nodes/Node.java
@@ -500,7 +500,7 @@ public abstract class Node extends FeatureDescriptor 
implements Lookup.Provider,
 hierarchy = ch;
 hierarchy.attachTo(Node.this);
 
-if (wasInited && hierarchy != Children.LEAF) {
+if (wasInited && !wasLeaf && hierarchy != Children.LEAF) {
 // init new children if old was inited
 hierarchy.getNodesCount();
 
diff --git 
a/platform/openide.nodes/test/unit/src/org/openide/nodes/LazyNodeTest3196.java 
b/platform/openide.nodes/test/unit/src/org/openide/nodes/LazyNodeTest3196.java
new file mode 100644
index 000..deff2ac
--- /dev/null
+++ 
b/platform/openide.nodes/test/unit/src/org/openide/nodes/LazyNodeTest3196.java
@@ -0,0 +1,131 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.openide.nodes;
+
+import org.netbeans.junit.NbTestCase;
+
+/**
+ * Test for NETBEANS-3196, where calling {@code Children.LEAF.getNodesCount()} 
(e.g. via
+ * {@code Node.EMPTY.getChildren().getNodesCount()}) will prevent lazy loading 
from working in
+ * certain cases in the future.
+ */
+public class LazyNodeTest3196 extends NbTestCase {
+{
+// Not sure if this is needed, but I saw it in some other tests, so it 
can't hurt...
+
System.setProperty("org.openide.explorer.VisualizerNode.prefetchCount", "0");
+}
+
+public LazyNodeTest3196(String name) {
+super(name);
+}
+
+public void testGetLeafGetNodesCountLazy() throws Exception {
+assertEquals(0, Children.LEAF.getNodesCount());
+assertEquals(0, Children.LEAF.getNodesCount(true));
+assertEquals(0, Node.EMPTY.getChildren().getNodesCount());
+assertEquals(0, Node.EMPTY.getChildren().getNodesCount(true));
+MyRootNode rootNode = new MyRootNode();
+assertEquals(0, rootNode.getChildren().getNodesCount());
+assertEquals(0, rootNode.getChildren().getNodesCount(true));
+
+/* After calling getNodesCount() on any Children object, including 
Children.LEAF,
+isInitialized should return true. */
+assertEquals(true, Children.LEAF.isInitialized());
+assertEquals(true, rootNode.getChildren().isInitialized());
+/* Bug NETBEANS-3196 used to happen when setChildren() was a called on 
a Node for which
+the value was previously Children.LEAF. In this case, setChildren() 
would immediately
+initialize the new Children eagerly, rather than allowing lazy 
expansion. */
+rootNode.setChildrenExposed(new LazyChildrenImplementation());
+
+/* We haven't queried the new children at this point, so the Children 
instance should not
+be initialized. Prior to the fix for NETBEANS-3196, the test would 
fail at this point. */
+assertEquals(false, rootNode.getChildren().isInitialized());
+assertEquals(false, ((LazyChildrenImplementation) 
rootNode.getChildren()).getWasEverAdded());
+
+/* I don't think the optimizedResult parameter makes a difference 
here. Even
+getNodesCount(false) 

[jira] [Created] (NETBEANS-5997) Problém při instalaci

2021-09-12 Thread Dominik Langsadl (Jira)
Dominik Langsadl created NETBEANS-5997:
--

 Summary: Problém při instalaci
 Key: NETBEANS-5997
 URL: https://issues.apache.org/jira/browse/NETBEANS-5997
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 12.0.1
Reporter: Dominik Langsadl
 Fix For: 12.0.1
 Attachments: 20210912213342.log

Dobrý den, 

při instalaci mi to vždy hodí chybu a konec, zkoušel jsem stáhnout program 
přímo a extrahovat a to funguje, ale v programu se neotevřou třeba okna na 
otevření projektu, nebo zvolit si umístění projektu a taky nevyskočí okno-



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

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

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



[netbeans] branch master updated (c67ae02 -> a42a68e)

2021-09-12 Thread sdedic
This is an automated email from the ASF dual-hosted git repository.

sdedic pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git.


from c67ae02  Merge pull request #3140 from 
sdedic/sdedic/failing-mavenactions
 new eb1b18c  Use Map to filter out potential duplicities when adding from 
multiple candidate classes.
 new d003e7c  Allow to construct ASTPath to outermost spanning node. 
setDeclaringClass() computes access.
 new 2382aef  Computed signature, handle enum constants.
 new bd2ba13  Use Groovy StaticTypeCheckingVisitor to attribute types in 
AST.
 new 834382d  Display instance members only in object context. Display 
correct vararg type.
 new 307bd2e  Indexed constructors supports modifiers.
 new 0501216  Conditional access handling for Groovy classes.
 new e225b60  Updated tests for modifier handling, varargs parameters and 
static access.
 new 533dc54  Added missing docs and @since
 new b369d1f  Do not report errors from type checker, to many false reports.
 new 0d87a95  Updated tests to run on both JDK8 & 11
 new a42a68e  Merge pull request #3125 from 
sdedic/groovy/static-type-checks2

The 5854 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 groovy/groovy.editor/apichanges.xml|  36 +++
 groovy/groovy.editor/manifest.mf   |   2 +-
 groovy/groovy.editor/nbproject/project.xml |   2 +-
 .../modules/groovy/editor/api/AstPath.java |  33 ++-
 .../modules/groovy/editor/api/GroovyIndex.java |  10 +-
 .../modules/groovy/editor/api/GroovyIndexer.java   |  17 +-
 .../groovy/editor/api/PathFinderVisitor.java   | 113 +++-
 .../editor/api/completion/CompletionItem.java  |  14 +-
 .../api/completion/util/CompletionContext.java |  81 --
 .../editor/api/completion/util/ContextHelper.java  |  25 ++
 .../editor/api/elements/ElementHandleSupport.java  |  36 +++
 .../groovy/editor/api/elements/ast/ASTElement.java |   3 +
 .../groovy/editor/api/elements/ast/ASTField.java   |   5 +
 .../groovy/editor/api/elements/ast/ASTMethod.java  |  54 ++--
 .../editor/api/parser/FilteredStaticErrors.lst}|  17 +-
 .../groovy/editor/api/parser/GroovyParser.java | 118 +++-
 .../editor/api/parser/GroovyParserResult.java  |  28 ++
 .../editor/api/parser/NbGroovyErrorCollector.java  | 306 +
 .../groovy/editor/compiler/CompilationUnit.java|   3 +-
 .../groovy/editor/completion/BaseCompletion.java   |  10 +-
 .../ConstructorGenerationCompletion.java   |   8 +-
 .../groovy/editor/completion/FieldCompletion.java  |  11 +-
 .../editor/completion/KeywordCompletion.java   |   7 +-
 .../editor/completion/LocalVarCompletion.java  |   8 +-
 .../groovy/editor/completion/MethodCompletion.java |  39 ++-
 .../editor/completion/NamedParamsCompletion.java   |   7 +-
 .../groovy/editor/completion/NewVarCompletion.java |   5 +-
 .../editor/completion/PackageCompletion.java   |   6 +-
 .../editor/completion/ProposalsCollector.java  |   8 +-
 .../groovy/editor/completion/TypesCompletion.java  |  10 +-
 .../completion/inference/GroovyTypeAnalyzer.java   |  11 +-
 .../completion/inference/MethodInference.java  |  43 ++-
 .../completion/inference/TypeInferenceVisitor.java |  27 +-
 .../provider/CompleteElementHandler.java   |  28 +-
 .../completion/provider/CompletionAccessor.java|   2 +
 .../completion/provider/GroovyCompletionImpl.java  |  62 +++--
 .../provider/GroovyElementsProvider.java   |  11 +-
 .../completion/provider/JavaElementHandler.java|  45 ++-
 .../completion/provider/MetaElementsProvider.java  |  33 ++-
 .../groovy/editor/java/JavaElementHandle.java  |   1 +
 .../modules/groovy/editor/utils/GroovyUtils.java   |  51 +++-
 .../test/unit/data/testfiles/ASTPath1.groovy   |  43 +++
 .../test/unit/data/testfiles/Hello.groovy.indexed  |  48 ++--
 ...ctions1.groovy.testCollections1_5.10.completion |  33 ++-
 ...ctions1.groovy.testCollections1_5.11.completion |  32 ++-
 ...ections1.groovy.testCollections1_5.9.completion |  32 ++-
 ...llections1.groovy.testCollections1_5.completion |  30 +-
 .../data/testfiles/completion/field/Fields2.groovy |  43 +++
 ...ds2.groovy.testFields2_javaModifiers.completion |   3 +
 testFields2_javaPropertyReference.9.completion |  16 ++
 ...vy.testFields2_javaPropertyReference.completion |  15 +
 ...Fields2.groovy.testFields2_modifiers.completion |   6 +
 ...oovy.testFields2_otherClassProperty.completion} |   4 +-
 ...2.groovy.testFields2_propertyChain1.completion} |   4 +-
 ...2.groovy.testFields2_propertyChain2.completion} |   4 +-
 ...s2.groovy.testFields2_propertyChain3.completion |   6 +
 ...ovy.testCompletionNoPrefixString1.11.completion |  34 ++-
 

[jira] [Comment Edited] (NETBEANS-2360) HiDPI scaling (and anti-aliasing on KDE) not applied automatically on Linux

2021-09-12 Thread Michal Hlavac (Jira)


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

Michal Hlavac edited comment on NETBEANS-2360 at 9/12/21, 7:05 PM:
---

Hi Eirik,

since dpi is not in the output of {{xrdb}} command, Netbeans runs without hiDPI 
scaling. I have to run it with {{-J-Dawt.useSystemAAFontSettings=on 
-J-Dsun.java2d.uiScale=2}}. Font antialiasing is not a problem.

Output of {{echo $KDE_FULL_SESSION}}:
{code:java}
hlavki@hlknb:~> echo $KDE_FULL_SESSION

true{code}
!image-2021-09-12-21-01-33-807.png|width=334,height=191!

!image-2021-09-12-21-05-06-852.png|width=365,height=258!


was (Author: hlavki):
Hi Eirik,

since dpi is not in the output of {{xrdb}} command, Netbeans runs without hiDPI 
scaling. I have to run it with {{-J-Dawt.useSystemAAFontSettings=on 
-J-Dsun.java2d.uiScale=2}}. Font antialiasing is not a problem.

Output of {{echo $KDE_FULL_SESSION}}:
{code:java}
hlavki@hlknb:~> echo $KDE_FULL_SESSION

true{code}
!image-2021-09-12-21-01-33-807.png|width=334,height=191!

> HiDPI scaling (and anti-aliasing on KDE) not applied automatically on Linux
> ---
>
> Key: NETBEANS-2360
> URL: https://issues.apache.org/jira/browse/NETBEANS-2360
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - LaunchersCLI
>Affects Versions: 11.0, 12.2
> Environment: Kubuntu 18.03
> Oracle JDK 11.0.2
>Reporter: Eirik Bakke
>Priority: Major
>  Labels: HiDPI, Linux, pull-request-available
> Attachments: image-2021-09-12-21-01-33-807.png, 
> image-2021-09-12-21-05-06-852.png, kubunt.jpg
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> Running NetBeans 11 on Kubuntu 18.03, GUI text size does not seem to take 
> into account the system's default HiDPI scaling. This was reported in a 
> Twitter thread on https://twitter.com/nicktail/status/1114789604337405952 . 
> Note that Window decorations seem to be the correct size.
> Setting the GDK_SCALE environment variable seems to fix the problem, if I 
> understand the originally reporter correctly. This could probably be done 
> easily from the NetBeans launcher script (netbeans/bin). But it wouldn't fix 
> the problem in multi-monitor setups. We should investigate what could be done 
> to make scaling work properly in multi-monitor setups involving one HiDPI 
> screen and one non-HiDPI screen.
> Before merging a patch to the launcher script, it should be tested on a 
> couple of different Linux environments, using both HiDPI and non-HiDPI 
> screens. Note that the UNIX launcher script is also used on MacOS.



--
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-2360) HiDPI scaling (and anti-aliasing on KDE) not applied automatically on Linux

2021-09-12 Thread Michal Hlavac (Jira)


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

Michal Hlavac commented on NETBEANS-2360:
-

Hi Eirik,

since dpi is not in the output of {{xrdb}} command, Netbeans runs without hiDPI 
scaling. I have to run it with {{-J-Dawt.useSystemAAFontSettings=on 
-J-Dsun.java2d.uiScale=2}}. Font antialiasing is not a problem.

Output of {{echo $KDE_FULL_SESSION}}:
{code:java}
hlavki@hlknb:~> echo $KDE_FULL_SESSION

true{code}
!image-2021-09-12-21-01-33-807.png|width=334,height=191!

> HiDPI scaling (and anti-aliasing on KDE) not applied automatically on Linux
> ---
>
> Key: NETBEANS-2360
> URL: https://issues.apache.org/jira/browse/NETBEANS-2360
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - LaunchersCLI
>Affects Versions: 11.0, 12.2
> Environment: Kubuntu 18.03
> Oracle JDK 11.0.2
>Reporter: Eirik Bakke
>Priority: Major
>  Labels: HiDPI, Linux, pull-request-available
> Attachments: image-2021-09-12-21-01-33-807.png, kubunt.jpg
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> Running NetBeans 11 on Kubuntu 18.03, GUI text size does not seem to take 
> into account the system's default HiDPI scaling. This was reported in a 
> Twitter thread on https://twitter.com/nicktail/status/1114789604337405952 . 
> Note that Window decorations seem to be the correct size.
> Setting the GDK_SCALE environment variable seems to fix the problem, if I 
> understand the originally reporter correctly. This could probably be done 
> easily from the NetBeans launcher script (netbeans/bin). But it wouldn't fix 
> the problem in multi-monitor setups. We should investigate what could be done 
> to make scaling work properly in multi-monitor setups involving one HiDPI 
> screen and one non-HiDPI screen.
> Before merging a patch to the launcher script, it should be tested on a 
> couple of different Linux environments, using both HiDPI and non-HiDPI 
> screens. Note that the UNIX launcher script is also used on MacOS.



--
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-2360) HiDPI scaling (and anti-aliasing on KDE) not applied automatically on Linux

2021-09-12 Thread Michal Hlavac (Jira)


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

Michal Hlavac updated NETBEANS-2360:

Attachment: image-2021-09-12-21-01-33-807.png

> HiDPI scaling (and anti-aliasing on KDE) not applied automatically on Linux
> ---
>
> Key: NETBEANS-2360
> URL: https://issues.apache.org/jira/browse/NETBEANS-2360
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - LaunchersCLI
>Affects Versions: 11.0, 12.2
> Environment: Kubuntu 18.03
> Oracle JDK 11.0.2
>Reporter: Eirik Bakke
>Priority: Major
>  Labels: HiDPI, Linux, pull-request-available
> Attachments: image-2021-09-12-21-01-33-807.png, kubunt.jpg
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> Running NetBeans 11 on Kubuntu 18.03, GUI text size does not seem to take 
> into account the system's default HiDPI scaling. This was reported in a 
> Twitter thread on https://twitter.com/nicktail/status/1114789604337405952 . 
> Note that Window decorations seem to be the correct size.
> Setting the GDK_SCALE environment variable seems to fix the problem, if I 
> understand the originally reporter correctly. This could probably be done 
> easily from the NetBeans launcher script (netbeans/bin). But it wouldn't fix 
> the problem in multi-monitor setups. We should investigate what could be done 
> to make scaling work properly in multi-monitor setups involving one HiDPI 
> screen and one non-HiDPI screen.
> Before merging a patch to the launcher script, it should be tested on a 
> couple of different Linux environments, using both HiDPI and non-HiDPI 
> screens. Note that the UNIX launcher script is also used on MacOS.



--
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-5996) Code highlighting and error checking stop working when method reference passed as a parameter where it should't be.

2021-09-12 Thread Aliaksandr Rasolka (Jira)


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

Aliaksandr Rasolka updated NETBEANS-5996:
-
Description: 
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\User\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 
...
Please report a bug against java/source and attach dump file 
'C:\Users\User\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.
...
Caused by: java.lang.IllegalStateException: java.lang.ClassCastException  
at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
  
at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
  
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
  
at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
  
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)  
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) 
 
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)  
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Caused by: java.lang.ClassCastException
...{noformat}
 

>From *UserDao* I call method
{code:java}
public  List processMultipleResultsSelectRequest(
String sql,
PreparedStatementContainerInitializer statementInitializer,
Supplier entityCreator,
EntityInitializer entityInitializer) throws DaoException {
...
}{code}
I pass reference to constructor as *entityCreator* parameter.
 If I place parameters correctly:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
"some SQL String",
null,
User::new,
this::initUser);
{code}
, everything works just fine.

However, I've found that if I swap parameters by mistake and do something like 
that:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
SQL_SELECT_ALL,
User::new,
null,
this::initUser);
{code}
, instead of highlighting my mistake, I get an error message from IDE.

 

IDE log and UI log are attached in case there is something useful inside. I 
copied text from them a bit earlier so there might be mentioned some other 
UserDao_XXX.dump.

UserDao_150.dump attached since it was requested by IDE.

 

  was:
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\User\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 
...
Please report a bug against java/source and attach dump file 
'C:\Users\User\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.
...
Caused by: java.lang.IllegalStateException: java.lang.ClassCastException  
at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
  
at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
  
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
  
at 

[jira] [Updated] (NETBEANS-5996) Code highlighting and error checking stop working when method reference passed as a parameter where it should't be.

2021-09-12 Thread Aliaksandr Rasolka (Jira)


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

Aliaksandr Rasolka updated NETBEANS-5996:
-
Description: 
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\User\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 
...
Please report a bug against java/source and attach dump file 
'C:\Users\User\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.
...
Caused by: java.lang.IllegalStateException: java.lang.ClassCastException  
at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
  
at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
  
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
  
at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
  
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)  
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) 
 
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)  
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Caused by: java.lang.ClassCastException
...{noformat}
 

>From *UserDao* I call method
{code:java}
public  List processMultipleResultsSelectRequest(
String sql,
PreparedStatementContainerInitializer statementInitializer,
Supplier entityCreator,
EntityInitializer entityInitializer) throws DaoException {
...
}{code}
I pass reference to constructor as *entityCreator* parameter.
 If I place parameters correctly:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
"some SQL String",
null,
User::new,
this::initUser);
{code}
, everything works just fine.

However, I've found that if i swap parameters by mistake and do something like 
that:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
SQL_SELECT_ALL,
User::new,
null,
this::initUser);
{code}
, instead of highlighting my mistake, I get an error message from IDE.

 

IDE log and UI log are attached in case there is something useful inside. I 
copied text from them a bit earlier so there might be mentioned some other 
UserDao_XXX.dump.

UserDao_150.dump attached since it was requested by IDE.

 

  was:
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\User\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 
...
Please report a bug against java/source and attach dump file 
'C:\Users\User\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.
...
Caused by: java.lang.IllegalStateException: java.lang.ClassCastException  
at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
  
at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
  
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
  
at 

[jira] [Commented] (NETBEANS-2360) HiDPI scaling (and anti-aliasing on KDE) not applied automatically on Linux

2021-09-12 Thread Eirik Bakke (Jira)


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

Eirik Bakke commented on NETBEANS-2360:
---

Hi Michal, thanks for testing! What kind of problem do you see? Are you 
expecting HiDPI scaling to be active (if so, which scale percentage?) And/or 
are you seeing problems with text anti-aliasing?

Could you also check the output of "echo $KDE_FULL_SESSION"? Thank you!


> HiDPI scaling (and anti-aliasing on KDE) not applied automatically on Linux
> ---
>
> Key: NETBEANS-2360
> URL: https://issues.apache.org/jira/browse/NETBEANS-2360
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - LaunchersCLI
>Affects Versions: 11.0, 12.2
> Environment: Kubuntu 18.03
> Oracle JDK 11.0.2
>Reporter: Eirik Bakke
>Priority: Major
>  Labels: HiDPI, Linux, pull-request-available
> Attachments: kubunt.jpg
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> Running NetBeans 11 on Kubuntu 18.03, GUI text size does not seem to take 
> into account the system's default HiDPI scaling. This was reported in a 
> Twitter thread on https://twitter.com/nicktail/status/1114789604337405952 . 
> Note that Window decorations seem to be the correct size.
> Setting the GDK_SCALE environment variable seems to fix the problem, if I 
> understand the originally reporter correctly. This could probably be done 
> easily from the NetBeans launcher script (netbeans/bin). But it wouldn't fix 
> the problem in multi-monitor setups. We should investigate what could be done 
> to make scaling work properly in multi-monitor setups involving one HiDPI 
> screen and one non-HiDPI screen.
> Before merging a patch to the launcher script, it should be tested on a 
> couple of different Linux environments, using both HiDPI and non-HiDPI 
> screens. Note that the UNIX launcher script is also used on MacOS.



--
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-5996) Code highlighting and error checking stop working when method reference passed as a parameter where it should't be.

2021-09-12 Thread Aliaksandr Rasolka (Jira)


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

Aliaksandr Rasolka updated NETBEANS-5996:
-
Description: 
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\User\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 
...
Please report a bug against java/source and attach dump file 
'C:\Users\User\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.
...
Caused by: java.lang.IllegalStateException: java.lang.ClassCastException  
at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
  
at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
  
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
  
at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
  
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)  
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) 
 
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)  
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Caused by: java.lang.ClassCastException
...{noformat}
 

>From *UserDao* I call method
{code:java}
public  List processMultipleResultsSelectRequest(
String sql,
PreparedStatementContainerInitializer statementInitializer,
Supplier entityCreator,
EntityInitializer entityInitializer) throws DaoException {
...
}{code}
I pass reference to constructor as a parameter for *entityCreator* parameter.
 If I place parameters correctly:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
"some SQL String",
null,
User::new,
this::initUser);
{code}
, everything works just fine.

However, I've found that if i swap parameters by mistake and do something like 
that:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
SQL_SELECT_ALL,
User::new,
null,
this::initUser);
{code}
, instead of highlighting my mistake, I get an error message from IDE.

 

IDE log and UI log are attached in case there is something useful inside. I 
copied text from them a bit earlier so there might be mentioned some other 
UserDao_XXX.dump.

UserDao_150.dump attached since it was requested by IDE.

 

  was:
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\User\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 
...
Please report a bug against java/source and attach dump file 
'C:\Users\User\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.
...
Caused by: java.lang.IllegalStateException: java.lang.ClassCastException  
at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
  
at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
  
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
  
at 

[jira] [Updated] (NETBEANS-5996) Code highlighting and error checking stop working when method reference passed as a parameter where it should't be.

2021-09-12 Thread Aliaksandr Rasolka (Jira)


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

Aliaksandr Rasolka updated NETBEANS-5996:
-
Summary: Code highlighting and error checking stop working when method 
reference passed as a parameter where it should't be.  (was: Code highlighting 
and error checking stop working when method reference passed as a parameter 
where it should't be. Page and/or application reload don't help)

> Code highlighting and error checking stop working when method reference 
> passed as a parameter where it should't be.
> ---
>
> Key: NETBEANS-5996
> URL: https://issues.apache.org/jira/browse/NETBEANS-5996
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Affects Versions: 12.4
>Reporter: Aliaksandr Rasolka
>Priority: Major
> Attachments: IDE log.txt, UI log.zip, UserDao_150.dump
>
>
> Code highlighting and error checking stop working when method reference 
> passed as a parameter to method not on it's proper place. Page and/or 
> application reload don't help.
> IDE said that I have found a bug in the application.
> {noformat}
> Annotation: An error occurred during parsing of 
> 'C:\Users\User\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
>  
> ...
> Please report a bug against java/source and attach dump file 
> 'C:\Users\User\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.
> ...
> Caused by: java.lang.IllegalStateException: java.lang.ClassCastException  
> at 
> jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
>   
> at 
> org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
>   
> at 
> org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
>   
> at 
> org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
>   
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
>   
> at 
> org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239) 
>  
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
>   
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)  
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
>   
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
>   
> at 
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
>   
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)  
> at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)  
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)  
> at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Caused by: java.lang.ClassCastException
> ...{noformat}
>  
> From *UserDao* I call method
> {code:java}
> public  List processMultipleResultsSelectRequest(
> String sql,
> PreparedStatementContainerInitializer statementInitializer,
> Supplier entityCreator,
> EntityInitializer entityInitializer) throws DaoException {
> ...
> }{code}
> I pass reference to constructor as a parameter for *entityCreator* parameter.
>  If I place parameters correctly:
> {code:java}
> requestHandler.processMultipleResultsSelectRequest(
> "some SQL String",
> null,
> User::new,
> this::initUser);
> {code}
> , everything works just fine.
> However, I've found that if i swap parameters by mistake and do something 
> like that:
> {code:java}
> requestHandler.processMultipleResultsSelectRequest(
> SQL_SELECT_ALL,
> User::new,
> null,
> this::initUser);
> {code}
> , instead of highlighting my mistake, I got an error message from IDE.
>  
> IDE log and UI log are attached in case there is something useful inside. I 
> copied text from them a bit earlier so there might be mentioned some other 
> UserDao_XXX.dump.
> UserDao_150.dump attached since it was requested by IDE.
>  



--
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-5996) Code highlighting and error checking stop working when method reference passed as a parameter where it should't be. Page and/or application reload don't help

2021-09-12 Thread Aliaksandr Rasolka (Jira)


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

Aliaksandr Rasolka updated NETBEANS-5996:
-
Description: 
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\User\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 
...
Please report a bug against java/source and attach dump file 
'C:\Users\User\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.
...
Caused by: java.lang.IllegalStateException: java.lang.ClassCastException  
at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
  
at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
  
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
  
at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
  
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)  
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) 
 
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)  
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Caused by: java.lang.ClassCastException
...{noformat}
 

>From *UserDao* I call method
{code:java}
public  List processMultipleResultsSelectRequest(
String sql,
PreparedStatementContainerInitializer statementInitializer,
Supplier entityCreator,
EntityInitializer entityInitializer) throws DaoException {
...
}{code}
I pass reference to constructor as a parameter for *entityCreator* parameter.
 If I place parameters correctly:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
"some SQL String",
null,
User::new,
this::initUser);
{code}
, everything works just fine.

However, I've found that if i swap parameters by mistake and do something like 
that:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
SQL_SELECT_ALL,
User::new,
null,
this::initUser);
{code}
, instead of highlighting my mistake, I got an error message from IDE.

 

IDE log and UI log are attached in case there is something useful inside. I 
copied text from them a bit earlier so there might be mentioned some other 
UserDao_XXX.dump.

UserDao_150.dump attached since it was requested by IDE.

 

  was:
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\User\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 
...
Please report a bug against java/source and attach dump file 
'C:\Users\User\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.

...

Caused by: java.lang.IllegalStateException: java.lang.ClassCastException  
at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
  
at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
  
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
  
at 

[jira] [Updated] (NETBEANS-5996) Code highlighting and error checking stop working when method reference passed as a parameter where it should't be. Page and/or application reload don't help

2021-09-12 Thread Aliaksandr Rasolka (Jira)


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

Aliaksandr Rasolka updated NETBEANS-5996:
-
Description: 
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\User\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 
...
Please report a bug against java/source and attach dump file 
'C:\Users\User\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.

...

Caused by: java.lang.IllegalStateException: java.lang.ClassCastException  
at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
  
at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
  
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
  
at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
  
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)  
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) 
 
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)  
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Caused by: java.lang.ClassCastException
...{noformat}
 

>From *UserDao* I call method
{code:java}
public  List processMultipleResultsSelectRequest(
String sql,
PreparedStatementContainerInitializer statementInitializer,
Supplier entityCreator,
EntityInitializer entityInitializer) throws DaoException {
...
}{code}
I pass reference to constructor as a parameter for *entityCreator* parameter.
 If I place parameters correctly:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
"some SQL String",
null,
User::new,
this::initUser);
{code}
, everything works just fine.

However, I've found that if i swap parameters by mistake and do something like 
that:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
SQL_SELECT_ALL,
User::new,
null,
this::initUser);
{code}
, instead of highlighting my mistake, I got an error message from IDE.

 

IDE log and UI log are attached in case there is something useful inside. I 
copied text from them a bit earlier so there might be mentioned some other 
UserDao_XXX.dump.

UserDao_150.dump attached since it was requested by IDE.

 

  was:
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\User\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 
...
Please report a bug against java/source and attach dump file 
'C:\Users\User\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.

...

Caused by: java.lang.IllegalStateException: java.lang.ClassCastException  at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
  at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
  at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
  at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
  at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
  at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)  at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
  at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
  at 

[jira] [Updated] (NETBEANS-5996) Code highlighting and error checking stop working when method reference passed as a parameter where it should't be. Page and/or application reload don't help

2021-09-12 Thread Aliaksandr Rasolka (Jira)


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

Aliaksandr Rasolka updated NETBEANS-5996:
-
Description: 
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\User\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 
...
Please report a bug against java/source and attach dump file 
'C:\Users\User\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.

...

Caused by: java.lang.IllegalStateException: java.lang.ClassCastException  
at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
  
at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
  
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
  
at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
  
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)  
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) 
 
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)  
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Caused by: java.lang.ClassCastException
...{noformat}
 

>From *UserDao* I call method
{code:java}
public  List processMultipleResultsSelectRequest(
String sql,
PreparedStatementContainerInitializer statementInitializer,
Supplier entityCreator,
EntityInitializer entityInitializer) throws DaoException {
...
}{code}
I pass reference to constructor as a parameter for *entityCreator* parameter.
 If I place parameters correctly:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
"some SQL String",
null,
User::new,
this::initUser);
{code}
, everything works just fine.

However, I've found that if i swap parameters by mistake and do something like 
that:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
SQL_SELECT_ALL,
User::new,
null,
this::initUser);
{code}
, instead of highlighting my mistake, I got an error message from IDE.

 

IDE log and UI log are attached in case there is something useful inside. I 
copied text from them a bit earlier so there might be mentioned some other 
UserDao_XXX.dump.

UserDao_150.dump attached since it was requested by IDE.

 

  was:
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\User\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 
...
Please report a bug against java/source and attach dump file 
'C:\Users\User\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.

...

Caused by: java.lang.IllegalStateException: java.lang.ClassCastException  
at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
  
at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
  
at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
  
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
  
at 

[jira] [Updated] (NETBEANS-5996) Code highlighting and error checking stop working when method reference passed as a parameter where it should't be. Page and/or application reload don't help

2021-09-12 Thread Aliaksandr Rasolka (Jira)


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

Aliaksandr Rasolka updated NETBEANS-5996:
-
Description: 
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\User\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 
...
Please report a bug against java/source and attach dump file 
'C:\Users\User\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.

...

Caused by: java.lang.IllegalStateException: java.lang.ClassCastException  at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
  at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
  at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
  at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
  at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
  at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)  
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)  at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
  at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
  at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)  at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)  
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)  at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)Caused
 by: java.lang.ClassCastException
...{noformat}
 

>From *UserDao* I call method
{code:java}
public  List processMultipleResultsSelectRequest(
String sql,
PreparedStatementContainerInitializer statementInitializer,
Supplier entityCreator,
EntityInitializer entityInitializer) throws DaoException {
...
}{code}
I pass reference to constructor as a parameter for *entityCreator* parameter.
 If I place parameters correctly:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
"some SQL String",
null,
User::new,
this::initUser);
{code}
, everything works just fine.

However, I've found that if i swap parameters by mistake and do something like 
that:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
SQL_SELECT_ALL,
User::new,
null,
this::initUser);
{code}
, instead of highlighting my mistake, I got an error message from IDE.

 

IDE log and UI log are attached in case there is something useful inside. I 
copied text from them a bit earlier so there might be mentioned some other 
UserDao_XXX.dump.

UserDao_150.dump attached since it was requested by IDE.

 

  was:
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 Please report a bug against java/source and attach dump file 
'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.Annotation:
 An error occurred during parsing of 
'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 Please report a bug against java/source and attach dump file 
'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.An error 
occurred during parsing of 
'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 Please report a bug against java/source and attach dump file 
'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.Caused 
by: java.lang.IllegalStateException: java.lang.ClassCastException at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
 at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
 at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
 at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
 at 

[jira] [Updated] (NETBEANS-5996) Code highlighting and error checking stop working when method reference passed as a parameter where it should't be. Page and/or application reload don't help

2021-09-12 Thread Aliaksandr Rasolka (Jira)


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

Aliaksandr Rasolka updated NETBEANS-5996:
-
Attachment: (was: UserDao.java)

> Code highlighting and error checking stop working when method reference 
> passed as a parameter where it should't be. Page and/or application reload 
> don't help
> -
>
> Key: NETBEANS-5996
> URL: https://issues.apache.org/jira/browse/NETBEANS-5996
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Affects Versions: 12.4
>Reporter: Aliaksandr Rasolka
>Priority: Major
> Attachments: IDE log.txt, UI log.zip, UserDao_150.dump
>
>
> Code highlighting and error checking stop working when method reference 
> passed as a parameter to method not on it's proper place. Page and/or 
> application reload don't help.
> IDE said that I have found a bug in the application.
> {noformat}
> Annotation: An error occurred during parsing of 
> 'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
>  Please report a bug against java/source and attach dump file 
> 'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.Annotation:
>  An error occurred during parsing of 
> 'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
>  Please report a bug against java/source and attach dump file 
> 'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.An 
> error occurred during parsing of 
> 'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
>  Please report a bug against java/source and attach dump file 
> 'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.Caused 
> by: java.lang.IllegalStateException: java.lang.ClassCastException at 
> jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
>  at 
> org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239) 
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at 
> org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
>  at 
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
>  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at 
> org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) 
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)Caused
>  by: java.lang.ClassCastExceptionAn error occurred during parsing of 
> 'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
>  Please report a bug against java/source and attach dump file 
> 'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.{noformat}
>  
> From *UserDao* I call method
> {code:java}
> public  List processMultipleResultsSelectRequest(
> String sql,
> PreparedStatementContainerInitializer statementInitializer,
> Supplier entityCreator,
> EntityInitializer entityInitializer) throws DaoException {
> ...
> }{code}
> I pass reference to constructor as a parameter for *entityCreator* parameter.
> If I place parameters correctly:
> {code:java}
> requestHandler.processMultipleResultsSelectRequest(
> "some SQL String",
> null,
> User::new,
> this::initUser);
> {code}
> , everything works just fine.
> However, I've found that if i swap parameters by mistake and do something 
> like that:
> {code:java}
> requestHandler.processMultipleResultsSelectRequest(
> SQL_SELECT_ALL,
> User::new,
> null,
> this::initUser);
> {code}
> , instead of highlighting my mistake, I got an error message from IDE.
>  
> IDE log and UI log are attached in case there is something useful inside. I 
> copied text from them a bit earlier so there might be mentioned some other 
> 

[jira] [Updated] (NETBEANS-5996) Code highlighting and error checking stop working when method reference passed as a parameter where it should't be. Page and/or application reload don't help

2021-09-12 Thread Aliaksandr Rasolka (Jira)


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

Aliaksandr Rasolka updated NETBEANS-5996:
-
Summary: Code highlighting and error checking stop working when method 
reference passed as a parameter where it should't be. Page and/or application 
reload don't help  (was: Code highlighting and error checking stop working when 
method reference is placed at wrong place. Page and/or application reload don't 
help)

> Code highlighting and error checking stop working when method reference 
> passed as a parameter where it should't be. Page and/or application reload 
> don't help
> -
>
> Key: NETBEANS-5996
> URL: https://issues.apache.org/jira/browse/NETBEANS-5996
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Affects Versions: 12.4
>Reporter: Aliaksandr Rasolka
>Priority: Major
> Attachments: IDE log.txt, UI log.zip, UserDao.java, UserDao_150.dump
>
>
> Code highlighting and error checking stop working when method reference 
> passed as a parameter to method not on it's proper place. Page and/or 
> application reload don't help.
> IDE said that I have found a bug in the application.
> {noformat}
> Annotation: An error occurred during parsing of 
> 'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
>  Please report a bug against java/source and attach dump file 
> 'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.Annotation:
>  An error occurred during parsing of 
> 'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
>  Please report a bug against java/source and attach dump file 
> 'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.An 
> error occurred during parsing of 
> 'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
>  Please report a bug against java/source and attach dump file 
> 'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.Caused 
> by: java.lang.IllegalStateException: java.lang.ClassCastException at 
> jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
>  at 
> org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239) 
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at 
> org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
>  at 
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
>  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at 
> org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) 
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)Caused
>  by: java.lang.ClassCastExceptionAn error occurred during parsing of 
> 'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
>  Please report a bug against java/source and attach dump file 
> 'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.{noformat}
>  
> From *UserDao* I call method
> {code:java}
> public  List processMultipleResultsSelectRequest(
> String sql,
> PreparedStatementContainerInitializer statementInitializer,
> Supplier entityCreator,
> EntityInitializer entityInitializer) throws DaoException {
> ...
> }{code}
> I pass reference to constructor as a parameter for *entityCreator* parameter.
> If I place parameters correctly:
> {code:java}
> requestHandler.processMultipleResultsSelectRequest(
> "some SQL String",
> null,
> User::new,
> this::initUser);
> {code}
> , everything works just fine.
> However, I've found that if i swap parameters by mistake and do something 
> like that:
> {code:java}
> requestHandler.processMultipleResultsSelectRequest(
> SQL_SELECT_ALL,
> User::new,

[jira] [Updated] (NETBEANS-5996) Code highlighting and error checking stop working when method reference is placed at wrong place. Page and/or application reload don't help

2021-09-12 Thread Aliaksandr Rasolka (Jira)


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

Aliaksandr Rasolka updated NETBEANS-5996:
-
Description: 
Code highlighting and error checking stop working when method reference passed 
as a parameter to method not on it's proper place. Page and/or application 
reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 Please report a bug against java/source and attach dump file 
'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.Annotation:
 An error occurred during parsing of 
'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 Please report a bug against java/source and attach dump file 
'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.An error 
occurred during parsing of 
'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 Please report a bug against java/source and attach dump file 
'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.Caused 
by: java.lang.IllegalStateException: java.lang.ClassCastException at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
 at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
 at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
 at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
 at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
 at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239) 
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
 at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
 at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
 at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at 
org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)Caused
 by: java.lang.ClassCastExceptionAn error occurred during parsing of 
'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 Please report a bug against java/source and attach dump file 
'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.{noformat}
 

>From *UserDao* I call method
{code:java}
public  List processMultipleResultsSelectRequest(
String sql,
PreparedStatementContainerInitializer statementInitializer,
Supplier entityCreator,
EntityInitializer entityInitializer) throws DaoException {
...
}{code}
I pass reference to constructor as a parameter for *entityCreator* parameter.
If I place parameters correctly:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
"some SQL String",
null,
User::new,
this::initUser);
{code}
, everything works just fine.

However, I've found that if i swap parameters by mistake and do something like 
that:
{code:java}
requestHandler.processMultipleResultsSelectRequest(
SQL_SELECT_ALL,
User::new,
null,
this::initUser);
{code}
, instead of highlighting my mistake, I got an error message from IDE.

 

IDE log and UI log are attached in case there is something useful inside. I 
copied text from them a bit earlier so there might be mentioned some other 
UserDao_XXX.dump.

UserDao_150.dump attached since it was requested by IDE.

 

  was:
Code highlighting and error checking crushes (for this java class only) after I 
add import for one specific class. Page and/or application reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 Please report a bug against java/source and attach dump file 
'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.Annotation:
 An error occurred during parsing of 
'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 Please report a bug against java/source and attach dump file 
'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.An error 
occurred during 

[jira] [Assigned] (NETBEANS-5995) Some Severe Startup Bug

2021-09-12 Thread Bharadwaj S (Jira)


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

Bharadwaj S reassigned NETBEANS-5995:
-

Assignee: Sören Henning
Due Date: 10/Sep/21  (was: 3/Sep/21)
 Summary: Some Severe Startup Bug  (was: Some Severe Startup Application)

> Some Severe Startup Bug
> ---
>
> Key: NETBEANS-5995
> URL: https://issues.apache.org/jira/browse/NETBEANS-5995
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - UI
>Affects Versions: 12.0, 12.4
> Environment: Windows 8.1 64-Bit
> i3-5005U
> Java 11.0.11 from Amazon Corretto
>Reporter: Bharadwaj S
>Assignee: Sören Henning
>Priority: Critical
> Fix For: Next
>
> Attachments: netbeans exceptions.txt
>
>
> java.lang.IllegalArgument Exception occurs at every startup



--
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-5996) Code highlighting and error checking crushes after I add import for one specific class. Page and/or application reload don't help

2021-09-12 Thread Aliaksandr Rasolka (Jira)


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

Aliaksandr Rasolka updated NETBEANS-5996:
-
Attachment: UserDao.java

> Code highlighting and error checking crushes after I add import for one 
> specific class. Page and/or application reload don't help
> -
>
> Key: NETBEANS-5996
> URL: https://issues.apache.org/jira/browse/NETBEANS-5996
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Affects Versions: 12.4
>Reporter: Aliaksandr Rasolka
>Priority: Major
> Attachments: IDE log.txt, UI log.zip, UserDao.java, UserDao_150.dump
>
>
> Code highlighting and error checking crushes (for this java class only) after 
> I add import for one specific class. Page and/or application reload don't 
> help.
> IDE said that I have found a bug in the application.
> {noformat}
> Annotation: An error occurred during parsing of 
> 'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
>  Please report a bug against java/source and attach dump file 
> 'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.Annotation:
>  An error occurred during parsing of 
> 'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
>  Please report a bug against java/source and attach dump file 
> 'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.An 
> error occurred during parsing of 
> 'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
>  Please report a bug against java/source and attach dump file 
> 'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.Caused 
> by: java.lang.IllegalStateException: java.lang.ClassCastException at 
> jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
>  at 
> org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239) 
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at 
> org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
>  at 
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
>  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at 
> org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) 
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)Caused
>  by: java.lang.ClassCastExceptionAn error occurred during parsing of 
> 'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
>  Please report a bug against java/source and attach dump file 
> 'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.{noformat}
>  
> I attached source file just in case. Without importing User class, there is 
> no problem (apart from IDE highlights  unknown class).
> IDE log and UI log are also attached in case there is something useful 
> inside. I copied text from them a bit earlier so there might be mentioned 
> some other UserDao_XXX.dump.
> UserDao_150.dump attached because it was requested by IDE.
>  



--
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-5627) Gradle project Lookup inconsistent until OpenProjects.open()

2021-09-12 Thread Eric Bresie (Jira)


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

Eric Bresie commented on NETBEANS-5627:
---

Not sure if this helps but I've been working some on an unrelated issue during 
which I've been having test failures during the Gradle Java Project

* For testCompilePreTrusted() it fails on this assertTrue in the case.  Has 
anything changed maybe in NbGradleProject that could have impacted the behavior 
here?  I see some recent changes relating to quality calls associated with this 
ticket.  Is there something up with this?

NbGradleProject ngp = NbGradleProject.get(prj2);
assertTrue("Closed project should be at least EVALUATED", 
ngp.getQuality().atLeast(NbGradleProject.Quality.EVALUATED));

* For testGradleProjectTemplates it indicates the following.  Is there a java 
version restriction here?  It looks if I read this right to be using JDK 11 
which is on my system at the moment.

* It seems like some things are timing out or not completing in a timely 
fashion.  It seems like some sort of deadlock condition coming in to play here?

The test testGradleProjectTemplates did not finish in 293519ms
"main" Id=1 in RUNNABLE
 at 
java.management@11.0.10/sun.management.ThreadImpl.dumpThreads0(Native Method)
 at 
java.management@11.0.10/sun.management.ThreadImpl.dumpAllThreads(ThreadImpl.java:521)
 at 
java.management@11.0.10/sun.management.ThreadImpl.dumpAllThreads(ThreadImpl.java:509)
 at app//org.netbeans.junit.NbTestCase.threadDump(NbTestCase.java:355)
 at app//org.netbeans.junit.NbTestCase.access$000(NbTestCase.java:77)
 at 
app//org.netbeans.junit.NbTestCase$1Guard.waitFinished(NbTestCase.java:444)
  - locked org.netbeans.junit.NbTestCase$2@8f2ef19
 at app//org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:501)
 at app//junit.framework.TestResult$1.protect(TestResult.java:122)
 at app//junit.framework.TestResult.runProtected(TestResult.java:142)
 at app//junit.framework.TestResult.run(TestResult.java:125)
 at app//junit.framework.TestCase.run(TestCase.java:130)
 at app//org.netbeans.junit.NbTestCase.run(NbTestCase.java:291)
 at app//junit.framework.TestSuite.runTest(TestSuite.java:241)
 at 
app//org.netbeans.junit.NbModuleSuite$NbTestSuiteLogCheck.runTest(NbModuleSuite.java:1611)
 at app//junit.framework.TestSuite.run(TestSuite.java:236)
 at app//junit.framework.TestSuite.runTest(TestSuite.java:241)
 at app//junit.framework.TestSuite.run(TestSuite.java:236)
 at 
app//org.netbeans.junit.NbModuleSuite$S.runInRuntimeContainer(NbModuleSuite.java:939)
 at 
app//org.netbeans.junit.NbModuleSuite$S.access$100(NbModuleSuite.java:660)
 at 
app//org.netbeans.junit.NbModuleSuite$S$1.protect(NbModuleSuite.java:681)
 at app//junit.framework.TestResult.runProtected(TestResult.java:142)
 at app//org.netbeans.junit.NbModuleSuite$S.run(NbModuleSuite.java:677)
 at 
app//org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:534)
 at 
app//org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1196)
 at 
app//org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1041)

"Reference Handler" Id=2 in RUNNABLE
 at 
java.base@11.0.10/java.lang.ref.Reference.waitForReferencePendingList(Native 
Method)
 at 
java.base@11.0.10/java.lang.ref.Reference.processPendingReferences(Reference.java:241)
 at 
java.base@11.0.10/java.lang.ref.Reference$ReferenceHandler.run(Reference.java:213)

"Finalizer" Id=3 in WAITING waiting on 
lock=java.lang.ref.ReferenceQueue$Lock@7674f035
 at java.base@11.0.10/java.lang.Object.wait(Native Method)
 at 
java.base@11.0.10/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155)
 at 
java.base@11.0.10/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:176)
 at 
java.base@11.0.10/java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:170)

"Signal Dispatcher" Id=4 in RUNNABLE

"Attach Listener" Id=5 in RUNNABLE

"Common-Cleaner" Id=20 in TIMED_WAITING waiting on 
lock=java.lang.ref.ReferenceQueue$Lock@69e153c5
 at java.base@11.0.10/java.lang.Object.wait(Native Method)
 at 
java.base@11.0.10/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155)
 at 
java.base@11.0.10/jdk.internal.ref.CleanerImpl.run(CleanerImpl.java:148)
 at java.base@11.0.10/java.lang.Thread.run(Thread.java:834)
 at 
java.base@11.0.10/jdk.internal.misc.InnocuousThread.run(InnocuousThread.java:134)

"Active Reference Queue Daemon" Id=23 in WAITING waiting on 
lock=java.lang.ref.ReferenceQueue$Lock@173ed316
 at java.base@11.0.10/java.lang.Object.wait(Native Method)

[jira] [Created] (NETBEANS-5996) Code highlighting and error checking crushes after I add import for one specific class. Page and/or application reload don't help

2021-09-12 Thread Aliaksandr Rasolka (Jira)
Aliaksandr Rasolka created NETBEANS-5996:


 Summary: Code highlighting and error checking crushes after I add 
import for one specific class. Page and/or application reload don't help
 Key: NETBEANS-5996
 URL: https://issues.apache.org/jira/browse/NETBEANS-5996
 Project: NetBeans
  Issue Type: Bug
  Components: java - Source
Affects Versions: 12.4
Reporter: Aliaksandr Rasolka
 Attachments: IDE log.txt, UI log.zip, UserDao_150.dump

Code highlighting and error checking crushes (for this java class only) after I 
add import for one specific class. Page and/or application reload don't help.

IDE said that I have found a bug in the application.
{noformat}
Annotation: An error occurred during parsing of 
'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 Please report a bug against java/source and attach dump file 
'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.Annotation:
 An error occurred during parsing of 
'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 Please report a bug against java/source and attach dump file 
'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.An error 
occurred during parsing of 
'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 Please report a bug against java/source and attach dump file 
'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.Caused 
by: java.lang.IllegalStateException: java.lang.ClassCastException at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
 at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:729)
 at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:515)
 at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:139)
 at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
 at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239) 
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
 at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
 at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
 at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at 
org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)Caused
 by: java.lang.ClassCastExceptionAn error occurred during parsing of 
'C:\Users\Vox\Documents\NetBeansProjects\MusicWaves\src\java\by\musicwaves\dao\UserDao.java'.
 Please report a bug against java/source and attach dump file 
'C:\Users\Vox\AppData\Roaming\NetBeans\12.4\var\log\UserDao_150.dump'.{noformat}
 

I attached source file just in case. Without importing User class, there is no 
problem (apart from IDE highlights  unknown class).

IDE log and UI log are also attached in case there is something useful inside. 
I copied text from them a bit earlier so there might be mentioned some other 
UserDao_XXX.dump.

UserDao_150.dump attached because it was requested by IDE.

 



--
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