[jira] [Commented] (NETBEANS-5703) Can we pass in -Djava.security.manager=allow?

2021-05-20 Thread Jan Lahoda (Jira)


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

Jan Lahoda commented on NETBEANS-5703:
--

{color:#00}For NetBeans IDE, does not really work easily, for me at 
least:{color}

 

{color:#00}$ ./netbeans --userdir /tmp/jep411-test --jdkhome 
 -J-Djava.security.manager=allow {color}
WARNING: The Security Manager is deprecated and will be removed in a future 
release. 
--- 
>Log Session: Friday, May 21, 2021 at 6:52:16 AM Central European Summer Time 
>System Info:  
  Product Version = Apache NetBeans IDE DEV (Build 
dev-a61bd21f4324f7e73414633712522811cb20ac93) (#a61bd21f4324) 
  Operating System    = Linux version 5.4.0-73-generic running on amd64 
  Java; VM; Vendor    = 17-internal; OpenJDK 64-Bit Server VM 
17-internal+0-adhoc.lahvac.jdk; N/A 
  Runtime = OpenJDK Runtime Environment 
17-internal+0-adhoc.lahvac.jdk 
  Java Home   = 
/home/lahvac/src/jdk/jdk/build/linux-x86_64-server-release/images/jdk 
  System Locale; Encoding = en_US (nb); UTF-8 
  Home Directory  = /home/lahvac 
  Current Directory   = /home/lahvac/src/nb/apache-netbeans.clean 
  User Directory  = /tmp/jep411-test 
  Cache Directory = /tmp/jep411-test/var/cache 
  Installation    = 
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/nb 
    
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/ergonomics 
    
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/ide 
    
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/extide 
    
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/java 
    
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/apisupport 
    
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/webcommon 
    
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/websvccommon 
    
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/enterprise 
    
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/profiler 
    
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/php 
    
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/harness 
    
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/cpplite 
    
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/groovy 
    
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/extra 
    
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/javafx 
    
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/platform 
  Boot & Ext. Classpath   =  
  Application Classpath   = 
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/platform/lib/boot.jar:/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/platform/lib/org-openide-modules.jar:/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/platform/lib/org-openide-util.jar:/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/platf
orm/lib/org-openide-util-lookup.jar:/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/platform/lib/org-openide-util-ui.jar
 
  Startup Classpath   = 
/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/platform/core/asm-commons-8.0.1.jar:/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/platform/core/core.jar:/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/platform/core/core-base.jar:/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/platform/co
re/org-openide-filesystems.jar:/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/platform/core/org-openide-filesystems-compat8.jar:/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/platform/core/asm-8.0.1.jar:/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/platform/core/asm-tree-8.0.1.jar:/home/lahvac/src/nb/apache-netbeans.clean/n
bbuild/netbeans/platform/core/org-netbeans-libs-asm.jar:/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/nb/core/org-netbeans-upgrader.jar:/home/lahvac/src/nb/apache-netbeans.clean/nbbuild/netbeans/nb/core/locale/core_nb.jar
 
--- 
java.lang.NoClassDefFoundError: allow 
    at 
org.eclipse.osgi.framework.internal.core.Framework.installSecurityManager(Framework.java:1345)
 
    at 
org.eclipse.osgi.framework.internal.core.Framework.(Framework.java:179) 
    at 

[jira] [Created] (NETBEANS-5703) Can we pass in -Djava.security.manager=allow?

2021-05-20 Thread Jaroslav Tulach (Jira)
Jaroslav Tulach created NETBEANS-5703:
-

 Summary: Can we pass in -Djava.security.manager=allow?
 Key: NETBEANS-5703
 URL: https://issues.apache.org/jira/browse/NETBEANS-5703
 Project: NetBeans
  Issue Type: Sub-task
  Components: platform - Module System
Reporter: Jaroslav Tulach
Assignee: Jan Lahoda


[JEP-411|https://openjdk.java.net/jeps/411] suggests to pass enable security 
manager on when launching the Java process via:
{quote}enabled on the command line, via {{java -Djava.security.manager}} or 
{{java -Djava.security.manager=...}}, then issue a warning message at startup.
{quote}
Does that work? E.g. can NetBeans 12.4 be launched with such option?



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

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

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



[jira] [Assigned] (NETBEANS-5689) NetBeans does not start on JDK build with JEP 411

2021-05-20 Thread Jaroslav Tulach (Jira)


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

Jaroslav Tulach reassigned NETBEANS-5689:
-

Assignee: Jaroslav Tulach

> NetBeans does not start on JDK build with JEP 411
> -
>
> Key: NETBEANS-5689
> URL: https://issues.apache.org/jira/browse/NETBEANS-5689
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Module System
>Reporter: Jan Lahoda
>Assignee: Jaroslav Tulach
>Priority: Blocker
>
> Using a build of JDK with this change:
> [https://github.com/openjdk/jdk/pull/4073]
> which implements JEP 411:
> [https://openjdk.java.net/jeps/411]
>  
> NetBeans does not start anymore:
> {code:java}
> $ ./netbeans --userdir /tmp/jep411-test --jdkhome 
> java.lang.UnsupportedOperationException: Runtime configured to disallow 
> security manager 
>     at java.base/java.lang.System.setSecurityManager(System.java:394) 
>     at 
> org.netbeans.TopSecurityManager.install(TopSecurityManager.java:525) 
>     at 
> org.netbeans.core.NbLifecycleManager.advancePolicy(NbLifecycleManager.java:69)
>  
>     at org.netbeans.core.GuiRunLevel.run(GuiRunLevel.java:84) 
>     at org.netbeans.core.startup.Main.start(Main.java:295) 
>     at 
> org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98) 
>     at java.base/java.lang.Thread.run(Thread.java:833)
> {code}



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

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

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



[jira] [Updated] (NETBEANS-5702) N12.3 is kills Wildfly-22 when trying to debug javaEE project

2021-05-20 Thread Paul (Jira)


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

Paul updated NETBEANS-5702:
---

{{logs from the point of second start of server}}

 

{{16:23:50,500 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) 
MSC01: Failed to start service org.wildfly.undertow.listener.default: 
org.jboss.msc.service.StartException in service 
org.wildfly.undertow.listener.default: Address already in use 
/192.168.0.106:808016:23:50,500 ERROR [org.jboss.msc.service.fail] (MSC service 
thread 1-2) MSC01: Failed to start service 
org.wildfly.undertow.listener.default: org.jboss.msc.service.StartException in 
service org.wildfly.undertow.listener.default: Address already in use 
/192.168.0.106:8080 at 
org.wildfly.extension.undertow@22.0.0.Final//org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:209)
 at 
org.jboss.msc@1.4.12.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
 at 
org.jboss.msc@1.4.12.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
 at 
org.jboss.msc@1.4.12.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
 at 
org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
 at 
org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
 at 
org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
 at 
org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363)}}

> N12.3 is kills Wildfly-22 when trying to debug javaEE project
> -
>
> Key: NETBEANS-5702
> URL: https://issues.apache.org/jira/browse/NETBEANS-5702
> Project: NetBeans
>  Issue Type: Bug
>  Components: serverplugins - WildFly
>Affects Versions: 12.3
> Environment: *Product Version:* Apache NetBeans IDE 12.3
> *Java:* 15.0.2; OpenJDK 64-Bit Server VM 15.0.2+7
> *Runtime:* OpenJDK Runtime Environment 15.0.2+7
> *System:* Mac OS X version 11.2.3 running on x86_64; UTF-8; en_US (nb)
> *User directory:* /Users//Library/Application Support/NetBeans/12.3
> *Cache directory:* /Users//Library/Caches/NetBeans/12.3
>  
>Reporter: Paul
>Priority: Blocker
>  Labels: debug, plug-in, wildfly
> Fix For: 12.4
>
>
> replicate by:
>  * create new EAR project w/ Maven
>  * add generic WS resource 
>  * add generic SLSB
>  * clean/build
>  * right-click in projects window, select Debug or Run
> Nb12.3 starts the server, deploys the EAR, then starts the server again 
> (seems unable to detect the server is already running).
> The second start attempt fails (port in use), and wildfly is killed.
> The loss of productivity is drastic



--
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-5702) N12.3 is kills Wildfly-22 when trying to debug javaEE project

2021-05-20 Thread Paul (Jira)
Paul created NETBEANS-5702:
--

 Summary: N12.3 is kills Wildfly-22 when trying to debug javaEE 
project
 Key: NETBEANS-5702
 URL: https://issues.apache.org/jira/browse/NETBEANS-5702
 Project: NetBeans
  Issue Type: Bug
  Components: serverplugins - WildFly
Affects Versions: 12.3
 Environment: *Product Version:* Apache NetBeans IDE 12.3

*Java:* 15.0.2; OpenJDK 64-Bit Server VM 15.0.2+7

*Runtime:* OpenJDK Runtime Environment 15.0.2+7

*System:* Mac OS X version 11.2.3 running on x86_64; UTF-8; en_US (nb)

*User directory:* /Users//Library/Application Support/NetBeans/12.3

*Cache directory:* /Users//Library/Caches/NetBeans/12.3

 
Reporter: Paul
 Fix For: 12.4


replicate by:
 * create new EAR project w/ Maven
 * add generic WS resource 
 * add generic SLSB
 * clean/build
 * right-click in projects window, select Debug or Run

Nb12.3 starts the server, deploys the EAR, then starts the server again (seems 
unable to detect the server is already running).

The second start attempt fails (port in use), and wildfly is killed.

The loss of productivity is drastic



--
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-426) png file not viewed in scale in retina display

2021-05-20 Thread Eirik Bakke (Jira)


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

Eirik Bakke commented on NETBEANS-426:
--

The right behavior here depends on the definition of "1:1" here. The current 
behavior maps one pixel in the image to one logical pixel (=two device pixels 
on retina) on the screen.

But it's probably more useful to have the zoom rate be influenced by the HiDPI 
scaling factor of whichever screen the image is showing on when the "1:1" 
button is clicked, so that each pixel in the image maps to a device pixel on 
the screen. If you move the window to a different screen, with a different 
HiDPI scaling level, it'd be OK to require that the user presses the "1:1" 
button again.

> png file not viewed in scale in retina display
> --
>
> Key: NETBEANS-426
> URL: https://issues.apache.org/jira/browse/NETBEANS-426
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - UI
>Affects Versions: 8.2
>Reporter: Peter
>Priority: Major
>  Labels: HiDPI
> Attachments: icon is not one-to-one in scale if in retina.png
>
>
> png file not viewed in scale in retina display



--
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-5698) Improve tab component appearance on Retina displays (MacOS/Aqua LAF)

2021-05-20 Thread Eirik Bakke (Jira)


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

Eirik Bakke updated NETBEANS-5698:
--
Attachment: MacOS Catalina Border Style Example.png

> Improve tab component appearance on Retina displays (MacOS/Aqua LAF)
> 
>
> Key: NETBEANS-5698
> URL: https://issues.apache.org/jira/browse/NETBEANS-5698
> Project: NetBeans
>  Issue Type: Improvement
>  Components: platform - Window System
>Affects Versions: 12.2
> Environment: MacOS with Aqua LAF
>Reporter: Eirik Bakke
>Priority: Major
>  Labels: HiDPI, pull-request-available
> Attachments: Java 11 Tabs New.png, Java 11 Tabs Old.png, MacOS 
> Catalina Border Style Example.png, Summary.png
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> The tab components used by the window system on the Aqua (MacOS) LAF have a 
> few visual imperfections when scaled up for Retina displays. It'll be good to 
> fix these, as was done for the Windows LAF in NETBEANS-5673. Since Retina 
> displays are always scaled at exactly 2x, this should be a lot easier than on 
> Windows, where fractional scalings like 150% tend to cause a lot of headaches.
> The Aqua LAF otherwise looks reasonably modern. It's fairly consistent with 
> the look of native apps on MacOS Catalina. On MacOS Big Sur, the visual style 
> has changed a bit, with either bright or dark colors depending on light/dark 
> mode (rather than midtone greys), and "glass pane" textures rather than 
> metallic surface gradients. It's probably best to keep the existing Aqua LAF 
> style for now, though perhaps some of the bevel effects could go away to make 
> it look more up-to-date.



--
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-5698) Improve tab component appearance on Retina displays (MacOS/Aqua LAF)

2021-05-20 Thread Eirik Bakke (Jira)


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

Eirik Bakke updated NETBEANS-5698:
--
Attachment: Summary.png
Java 11 Tabs Old.png
Java 11 Tabs New.png

> Improve tab component appearance on Retina displays (MacOS/Aqua LAF)
> 
>
> Key: NETBEANS-5698
> URL: https://issues.apache.org/jira/browse/NETBEANS-5698
> Project: NetBeans
>  Issue Type: Improvement
>  Components: platform - Window System
>Affects Versions: 12.2
> Environment: MacOS with Aqua LAF
>Reporter: Eirik Bakke
>Priority: Major
>  Labels: HiDPI, pull-request-available
> Attachments: Java 11 Tabs New.png, Java 11 Tabs Old.png, Summary.png
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> The tab components used by the window system on the Aqua (MacOS) LAF have a 
> few visual imperfections when scaled up for Retina displays. It'll be good to 
> fix these, as was done for the Windows LAF in NETBEANS-5673. Since Retina 
> displays are always scaled at exactly 2x, this should be a lot easier than on 
> Windows, where fractional scalings like 150% tend to cause a lot of headaches.
> The Aqua LAF otherwise looks reasonably modern. It's fairly consistent with 
> the look of native apps on MacOS Catalina. On MacOS Big Sur, the visual style 
> has changed a bit, with either bright or dark colors depending on light/dark 
> mode (rather than midtone greys), and "glass pane" textures rather than 
> metallic surface gradients. It's probably best to keep the existing Aqua LAF 
> style for now, though perhaps some of the bevel effects could go away to make 
> it look more up-to-date.



--
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-5698) Improve tab component appearance on Retina displays (MacOS/Aqua LAF)

2021-05-20 Thread ASF GitHub Bot (Jira)


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

ASF GitHub Bot updated NETBEANS-5698:
-
Labels: HiDPI pull-request-available  (was: HiDPI)

> Improve tab component appearance on Retina displays (MacOS/Aqua LAF)
> 
>
> Key: NETBEANS-5698
> URL: https://issues.apache.org/jira/browse/NETBEANS-5698
> Project: NetBeans
>  Issue Type: Improvement
>  Components: platform - Window System
>Affects Versions: 12.2
> Environment: MacOS with Aqua LAF
>Reporter: Eirik Bakke
>Priority: Major
>  Labels: HiDPI, pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> The tab components used by the window system on the Aqua (MacOS) LAF have a 
> few visual imperfections when scaled up for Retina displays. It'll be good to 
> fix these, as was done for the Windows LAF in NETBEANS-5673. Since Retina 
> displays are always scaled at exactly 2x, this should be a lot easier than on 
> Windows, where fractional scalings like 150% tend to cause a lot of headaches.
> The Aqua LAF otherwise looks reasonably modern. It's fairly consistent with 
> the look of native apps on MacOS Catalina. On MacOS Big Sur, the visual style 
> has changed a bit, with either bright or dark colors depending on light/dark 
> mode (rather than midtone greys), and "glass pane" textures rather than 
> metallic surface gradients. It's probably best to keep the existing Aqua LAF 
> style for now, though perhaps some of the bevel effects could go away to make 
> it look more up-to-date.



--
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: LSP: Provide hover information in Micronaut yaml files. (#2955)

2021-05-20 Thread dbalek
This is an automated email from the ASF dual-hosted git repository.

dbalek 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 ebce17f  LSP: Provide hover information in Micronaut yaml files. 
(#2955)
ebce17f is described below

commit ebce17f24363206e0e50c16b0d63962a282a670a
Author: Dusan Balek 
AuthorDate: Thu May 20 18:24:37 2021 +0200

LSP: Provide hover information in Micronaut yaml files. (#2955)
---
 enterprise/micronaut/nbproject/project.xml |2 +-
 .../MicronautConfigCompletionProvider.java |2 +-
 .../completion/MicronautHoverProvider.java |   40 +
 ide/api.lsp/apichanges.xml |   15 +
 ide/api.lsp/arch.xml   | 1097 
 ide/api.lsp/manifest.mf|2 +-
 ide/api.lsp/nbproject/project.properties   |3 +
 ide/api.lsp/nbproject/project.xml  |   10 +
 ide/api.lsp/src/org/netbeans/api/lsp/Hover.java|   67 ++
 .../org/netbeans/api/lsp/HyperlinkLocation.java|6 +-
 .../src/org/netbeans/spi/lsp/HoverProvider.java|   56 +
 .../unit/src/org/netbeans/api/lsp/HoverTest.java   |   80 ++
 .../netbeans/api/lsp/HyperlinkLocationTest.java|  136 +++
 java/java.editor/nbproject/project.xml |2 +-
 .../modules/editor/java/JavaHoverProvider.java |   65 ++
 .../server/protocol/TextDocumentServiceImpl.java   |   64 +-
 .../java/lsp/server/protocol/ServerTest.java   |1 +
 .../api/java/source/ui/ElementJavadoc.java |   72 +-
 nbbuild/build.properties   |1 +
 nbbuild/javadoctools/links.xml |1 +
 nbbuild/javadoctools/properties.xml|1 +
 nbbuild/javadoctools/replaces.xml  |1 +
 22 files changed, 1617 insertions(+), 107 deletions(-)

diff --git a/enterprise/micronaut/nbproject/project.xml 
b/enterprise/micronaut/nbproject/project.xml
index e15395e..a64839a 100644
--- a/enterprise/micronaut/nbproject/project.xml
+++ b/enterprise/micronaut/nbproject/project.xml
@@ -48,7 +48,7 @@
 
 
 1
-1.0
+1.2
 
 
 
diff --git 
a/enterprise/micronaut/src/org/netbeans/modules/micronaut/completion/MicronautConfigCompletionProvider.java
 
b/enterprise/micronaut/src/org/netbeans/modules/micronaut/completion/MicronautConfigCompletionProvider.java
index 788e0da..29aca81 100644
--- 
a/enterprise/micronaut/src/org/netbeans/modules/micronaut/completion/MicronautConfigCompletionProvider.java
+++ 
b/enterprise/micronaut/src/org/netbeans/modules/micronaut/completion/MicronautConfigCompletionProvider.java
@@ -110,7 +110,7 @@ public class MicronautConfigCompletionProvider implements 
CompletionProvider {
 if (element == null) {
 element = MicronautConfigUtilities.resolveProperty(doc, 
caretOffset, null, null);
 }
-resultSet.setDocumentation(new 
MicronautConfigDocumentation(element));
+resultSet.setDocumentation(element != null ? new 
MicronautConfigDocumentation(element) : null);
 resultSet.finish();
 }
 }
diff --git 
a/enterprise/micronaut/src/org/netbeans/modules/micronaut/completion/MicronautHoverProvider.java
 
b/enterprise/micronaut/src/org/netbeans/modules/micronaut/completion/MicronautHoverProvider.java
new file mode 100644
index 000..be9fa4c
--- /dev/null
+++ 
b/enterprise/micronaut/src/org/netbeans/modules/micronaut/completion/MicronautHoverProvider.java
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.netbeans.modules.micronaut.completion;
+
+import java.util.concurrent.CompletableFuture;
+import javax.swing.text.Document;
+import org.netbeans.api.editor.mimelookup.MimeRegistration;
+import org.netbeans.modules.micronaut.MicronautConfigUtilities;
+import org.netbeans.spi.lsp.HoverProvider;
+import 
org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty;
+

[jira] [Updated] (NETBEANS-5699) Testcases failing with JDK17 in java.editor

2021-05-20 Thread ASF GitHub Bot (Jira)


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

ASF GitHub Bot updated NETBEANS-5699:
-
Labels: pull-request-available  (was: )

> Testcases failing with JDK17 in java.editor
> ---
>
> Key: NETBEANS-5699
> URL: https://issues.apache.org/jira/browse/NETBEANS-5699
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor, java - Hints
>Affects Versions: 12.4
>Reporter: Sandeep Mishra
>Assignee: Sandeep Mishra
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Testcase: 
> *testModelToViewAtBoundaries*(org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest):
>  Caused an ERROR
>  [junit] null
>  [junit] java.lang.reflect.InvocationTargetException
>  [junit] at 
> java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1368)
>  [junit] at 
> java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1343)
>  [junit] at 
> java.desktop/javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1479)
>  [junit] at 
> org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest.testModelToViewAtBoundaries(JavaViewHierarchyRandomTest.java:162)
>  [junit] at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  [junit] at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
>  [junit] at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [junit] at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
>  [junit] at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:476)
>  [junit] at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:402)
>  [junit] at java.base/java.lang.Thread.run(Thread.java:831)
>  [junit] Caused by: java.lang.IllegalStateException: 
> javax.swing.text.BadLocationException: Invalid position
>  [junit] at 
> org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest$1.run(JavaViewHierarchyRandomTest.java:173)
>  [junit] at 
> java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308)
>  [junit] at 
> java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
>  [junit] at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
>  [junit] at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
>  [junit] at 
> java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
>  [junit] at 
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
>  [junit] at 
> java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
>  [junit] at 
> java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
>  [junit] at 
> java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
>  [junit] at 
> java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
>  [junit] at 
> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
>  [junit] at 
> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>  [junit] at 
> java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
>  [junit] Caused by: javax.swing.text.BadLocationException: Invalid position
>  [junit] at 
> java.desktop/javax.swing.plaf.basic.BasicTextUI.getNextVisualPositionFrom(BasicTextUI.java:1202)
>  [junit] at 
> org.netbeans.editor.BaseTextUI.getNextVisualPositionFrom(BaseTextUI.java:339)
>  [junit] at 
> org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest$1.getNextVisualPositionFrom(JavaViewHierarchyRandomTest.java:183)
>  [junit] at 
> org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest$1.run(JavaViewHierarchyRandomTest.java:171)
>  [junit] 
>  [junit] 
>  [junit] Test 
> org.netbeans.modules.java.editor.view.JavaViewHierarchyRandomTest FAILED
>  
> Testcase: 
> *testException*(org.netbeans.api.java.source.test.support.MemoryValidator): 
> FAILED
>  [junit] 
> expected: ]javax.swing.text.Ele...> but was:
>  [junit] junit.framework.ComparisonFailure: 
> expected: ]javax.swing.text.Ele...> but was:
>  [junit] at 
> org.netbeans.modules.java.editor.imports.ComputeImportsTest.doTest(ComputeImportsTest.java:454)
>  [junit] at 
> org.netbeans.modules.java.editor.imports.ComputeImportsTest.doTest(ComputeImportsTest.java:422)
>  [junit] at 
> org.netbeans.modules.java.editor.imports.ComputeImportsTest.doTest(ComputeImportsTest.java:399)
>  [junit] at 
> org.netbeans.modules.java.editor.imports.ComputeImportsTest.testException(ComputeImportsTest.java:158)
>  [junit] at 
> 

[jira] [Created] (NETBEANS-5700) NullPointException when background scanning a project

2021-05-20 Thread Rural Hunter (Jira)
Rural Hunter created NETBEANS-5700:
--

 Summary: NullPointException when background scanning a project
 Key: NETBEANS-5700
 URL: https://issues.apache.org/jira/browse/NETBEANS-5700
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 12.3
Reporter: Rural Hunter
 Attachments: nbexception.zip

The error occurs when opening a project and nb doing the background scanning. 
See the detailed error data in attachment.



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