This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270044

Summary: NetBeans hangs when a Java project uses JDK 9
Product: platform Reporter: Alexandr Scherbatiy <sunflower>
Component: FilesystemsAssignee: Jaroslav Havlin <jhavlin>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Windows 8.1   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log file
Stack Trace
One more Stack Trace

Description Alexandr Scherbatiy 2017-03-10 14:07:06 UTC
Created attachment 163810 [details]
IDE log file

-------------------------------------------------------------------------------
>Log Session: Friday, March 10, 2017 4:06:26 PM MSK
>System Info: 
  Product Version         = NetBeans IDE Dev (Build 201703100002) (#fce9a17fb173)
  Operating System        = Windows 8.1 version 6.3 running on x86
  Java; VM; Vendor        = 1.8.0_131-ea; Java HotSpot(TM) Client VM 25.131-b04; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.8.0_131-ea-b04
  Java Home               = C:\Sun\Tools\JDK\boot\jdk1.8.0_131\jre
  System Locale; Encoding = en_US (nb); Cp1252


I use the suggested dev build with JDK 9 support:
http://stackoverflow.com/questions/41117190/java-9-on-windows-with-large-fonts


Steps to reproduce:
- Build JDK 9 from sources
- Run the IDE
- Add the built JDK 9 as Java Platform
- Add <jdk9>\jdk\src\java.desktop\share\classes folder as platform sources for the JDK 9 platform
- Create a Java project
- Set the JDK 9 platform to the Java project
- Press Ctrl+O and type MetalIconFactory
- Open the MetalIconFactory file
- Find  the RadioButtonIcon.paintOceanIcon(Component c, Graphics g, int x, int y) method
- Insert some text to the method

The IDE hangs.
Comment 1 Alexandr Scherbatiy 2017-03-10 14:17:17 UTC
Sorry. The link to the suggested dev build with JDK 9 support should be:
https://netbeans.org/projects/www/lists/nbdev/archive/2017-03/message/2
Comment 2 Alexandr Scherbatiy 2017-03-10 15:22:57 UTC
Created attachment 163812 [details]
Stack Trace
Comment 3 Alexandr Scherbatiy 2017-03-10 18:33:41 UTC
Created attachment 163813 [details]
One more Stack Trace
Comment 4 Tomas Zezula 2017-04-03 15:42:14 UTC
Caused by NIO2 FSWatcher.
The sun.nio.fs.WindowsPath.register or cancel never ends.
Duplicate of issue #270283

*** This bug has been marked as a duplicate of bug 270283 ***