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 185031

Summary: No support for listening on the source format changes in the SourceLevelQuery
Product: java Reporter: ulfzibis <ulfzibis>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 188304    
Bug Blocks:    

Description ulfzibis 2010-04-26 16:48:21 UTC
[ BUILD # : Beta ]
[ JDK VERSION : 1.6.* ]

Let's have in a JDK-7 project:
List<T> list = new ArrayList<T>();

I get a "Use diamond operator" hint.

If I change the source format of the project to 1.6, this hint doesn't
disappear.
Additionally no error is detected on a string switch statement.
Comment 1 Dusan Balek 2010-04-29 11:36:03 UTC
Unfortunately, there is no support for listening on the source format changes in the current SourceLevelQuery. Therefore, error badges and hints are updated on the  first reparse of the document (can be initiated by typing, moving focus out and back to the document, etc.). P4 IMHO.
Comment 2 Tomas Zezula 2010-06-30 14:06:47 UTC
Makes sense, scheduling for 6.10.
Comment 3 Tomas Zezula 2010-10-12 11:38:50 UTC
Fixed jet-main 05c1ac38a4a6