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 252751

Summary: Broken background coloring on JDK 9
Product: editor Reporter: Jiri Kovalsky <jkovalsky>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal Keywords: JDK_9
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Video showing loss of background coloring of guarded blocks of code.

Description Jiri Kovalsky 2015-06-02 12:31:26 UTC
Created attachment 154016 [details]
Video showing loss of background coloring of guarded blocks of code.

Product Version: NetBeans IDE Dev (Build 201506020405)
Updates: Updates available
Java: 1.9.0-ea; Java HotSpot(TM) 64-Bit Server VM 1.9.0-ea-b66
Runtime: Java(TM) SE Runtime Environment 1.9.0-ea-b66
System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/dev
Cache directory: /home/cesilko/.cache/netbeans/dev

When NetBeans IDE is run on JDK 9 the Editor stops to provide syntax coloring like breakpoints or guarded blocks of code after some time or certain actions. Please see the attached video demonstrating the problem.

Steps to reproduce:
1. Launch NetBeans IDE using JDK 9.
2. Invoke "File > New Project..." from main menu.
3. Select "Samples > Java" category and "Anagram Game" project type.
4. Push "Next >" and "Finish" buttons.
5. Right click "Source Packages > com.toy.anagrams.ui >" file node and invoke "Edit" from its popup menu.
6. In Editor scroll down to see beginning of initComponents() method. Note that content of this method has grey background color to visually differentiate non-editable areas of code.
7. Scroll down further to only see the guarded code. Wait a bit and scroll up to see again some editable code.

Expected: Guarded block of code stays highlighted with grey background color. Editable code has white background color.
Actual: Highlighting of guarded block of code suddenly turns off and everything has only white background.

Note: If the bug does not manifest itself immediately, repeat step 7 until you are successful reproducing the bug.
Comment 1 Jiri Kovalsky 2015-06-02 12:35:26 UTC
This is JDK 9 specific issue.
Comment 2 Tomas Zezula 2015-06-02 18:00:35 UTC
Works fine while running NB on JDK 8.
Seems NB runs on JDK 9 specific.