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 262073

Summary: Export javac function to infer type for declaration
Product: java Reporter: Svata Dedic <sdedic>
Component: SourceAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal Keywords: API, API_REVIEW_FAST
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 170574, 171272, 258167    
Attachments: Proposed changes

Description Svata Dedic 2016-05-17 08:44:51 UTC
See defects #258167, #171272 and #170574 (and possibly others). NetBeans run into issues when the IDE tries to declare a symbol based on expression's type.

The function could be exported from javac through TypeUtilities. See the attached diff.
Comment 1 Svata Dedic 2016-05-17 08:51:06 UTC
Created attachment 159780 [details]
Proposed changes
Comment 2 Svata Dedic 2016-06-17 11:36:32 UTC
Implemented in jet-main#c84429acf8b0
Comment 3 Quality Engineering 2016-06-18 03:12:28 UTC
Integrated into 'main-silver', will be available in build *201606180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c84429acf8b0
User: Svata Dedic <sdedic@netbeans.org>
Log: #262073: API to construct a type denotable in the source