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 197012

Summary: compiler underlines my code in red and complains of "-source 7" for binary literals
Product: java Reporter: nivlek_000
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description nivlek_000 2011-03-23 16:09:29 UTC
Product Version = NetBeans IDE 6.9.1 (Build 201007282301)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_24
Runtime = Java HotSpot(TM) Client VM 19.1-b02
Comment 1 Marian Mirilovic 2011-03-25 09:09:28 UTC
could you please attach your messages.log file and reopen this issue ? Thanks in advance. 
http://wiki.netbeans.org/FaqLogMessagesFile
Comment 2 Tomas Zezula 2011-03-25 09:11:58 UTC
You have to set the source level to JDK 7 in the project properties.
Comment 3 nivlek_000 2011-03-28 07:41:50 UTC
(In reply to comment #2)
> You have to set the source level to JDK 7 in the project properties.

Problem Solved. Thanks a bunch.