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 201569 - no auto-completition for nested structures with generics
Summary: no auto-completition for nested structures with generics
Alias: None
Product: javaee
Classification: Unclassified
Component: Expression Language (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
Depends on:
Reported: 2011-09-02 13:47 UTC by muellermi
Modified: 2014-01-17 07:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2011-09-02 13:47:24 UTC
Product Version = NetBeans IDE 7.0.1 (Build 201107282000)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) Client VM 21.0-b17

Assume you have some generic containers for intermediate data or function-like return values of methods, e.G. Pair, Triple, Quadruple

public class Quadruple<T1, T2, T3, T4> {
    public T1 getValue1() {
        return _value1;

Now let's assume value1 is an object containing diverse attributes

now value1, value2, ... are suggested

there is no suggestion

isEditable is indicated by a yellow underline as "unknown Property"

This code still works correct, but missing suggestion and indicating (non-existant) problems is annoying...
Comment 1 Marek Fukala 2011-10-31 13:45:00 UTC
Comment 2 Martin Fousek 2014-01-16 10:08:36 UTC
This should be already fixed. Some generic sensitive code completion I implemented into 7.4 and the hints issue with "unknown property" should be fixed today in #239883.

Muellermi, please could you re-test your request after 2-3 days once the #239883 appears in the daily build?

Feel free to reopen this issue again if the issue would exist. But in that case please attach sample project or just some sample code where are you able reproduce that. But I believe that it will work to you, I tested your Quadruple case and it worked for me.

Thanks a lot.
Comment 3 muellermi 2014-01-16 20:30:38 UTC
I guess, I'm gonna do it at the beginning of next week.
Comment 4 Martin Fousek 2014-01-17 07:31:45 UTC
(In reply to muellermi from comment #3)
> I guess, I'm gonna do it at the beginning of next week.

OK, great. Eventually provide more information about your setup if the issue would remain. Thanks.