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 - NetBeans hangs when a Java project uses JDK 9
Summary: NetBeans hangs when a Java project uses JDK 9
Status: RESOLVED DUPLICATE of bug 270283
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: Dev
Hardware: PC Windows 8.1
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-10 14:07 UTC by Alexandr Scherbatiy
Modified: 2017-04-03 15:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (144.60 KB, application/octet-stream)
2017-03-10 14:07 UTC, Alexandr Scherbatiy
Details
Stack Trace (22.53 KB, text/plain)
2017-03-10 15:22 UTC, Alexandr Scherbatiy
Details
One more Stack Trace (37.74 KB, text/plain)
2017-03-10 18:33 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***