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 236878 - [Change method parameter] In type browser list only available classes
Summary: [Change method parameter] In type browser list only available classes
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-08 12:14 UTC by Jiri Prox
Modified: 2013-10-08 12:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2013-10-08 12:14:20 UTC
The type browser inn change method parameter lists all types from all registered java platform. The user can select type which is not available in the current project java platform. In this case there is message 'Cannot resolve the type XXX for variable ....' but it is hard to find the real cause of this problem.

Steps to reproduce:
1) have two java platform jdk7 and jdk8
2) open project using jdk7
3) call Change method parameter
4) add parameter, click on type browser
(-> most types are listed twice, which may also puzzle the user)
5) select FunctionalInterface 

-> the error message is displayed

BTW. Add Property (in insert code menu) handles more jdk platforms correctly


Product Version: NetBeans IDE 7.4 (Build 201310012201)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b14
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\7.4
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\7.4