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 250590 - No hint for [rawtypes]
Summary: No hint for [rawtypes]
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-20 19:02 UTC by cezariusz
Modified: 2015-09-24 09:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cezariusz 2015-02-20 19:02:36 UTC
Here is the code generated by the GUI builder:

        jList1.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });

Since it gives a compilation warning I want to disable the [rawtypes] warning, but there is no hint for this.
Comment 1 Svata Dedic 2015-09-24 09:48:07 UTC
You must check/enable Hints for Standard Javac warnings. 

Reassigning to project support; it seems that I cannot get extra javac settings to autoconfigure lint options according to project settings. When such API is available, the issue should be fixed in Javac paser implementation