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 55674 - [41cat] Debugger does not understand Static Imports.
Summary: [41cat] Debugger does not understand Static Imports.
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker with 2 votes (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 120497 (view as bug list)
Depends on:
Blocks: 108873
  Show dependency tree
 
Reported: 2005-03-01 10:21 UTC by cberger
Modified: 2010-04-29 09:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Show debugger problem when highlighting isEmpty(null) (31.73 KB, image/jpeg)
2005-03-01 10:24 UTC, cberger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cberger 2005-03-01 10:21:25 UTC
[ BUILD # : 200502271900 ]
[ JDK VERSION : J2SE 1.5.0_01 ]

See attached test case and screen dump.

Basically, the Debugger does not understand
about static import methods, so you cannot
see the result of such a function call.
Comment 1 cberger 2005-03-01 10:21:57 UTC
Test Case:


package nbBugs;

import java.util.Collection;
import static nbBugs.HelperFunctions.*;
        
class HelperFunctions {
    static boolean isEmpty(Collection coll) {
        return (coll == null || coll.isEmpty());
    }
}

public class StaticImport {
    public static void main(String args[]) {
        boolean b = isEmpty(null);
        System.out.println(b);
    }
}
Comment 2 cberger 2005-03-01 10:24:39 UTC
Created attachment 20572 [details]
Show debugger problem when highlighting isEmpty(null)
Comment 3 Jan Jancura 2005-03-11 10:23:38 UTC
I can not fix it for nb41. Debugger uses old src model, which does not support
JDK1.5 features.
Comment 4 Martin Entlicher 2007-03-21 12:04:45 UTC
Reproduced. The import is recognized, but it's not treated as static. Therefore
the imported method is not found.
Comment 5 Martin Entlicher 2007-10-31 14:47:28 UTC
*** Issue 120497 has been marked as a duplicate of this issue. ***
Comment 6 cberger 2007-10-31 15:52:41 UTC
The problem has been reproduced, analyzed, but not fixed.
As mentioned in 120494, this is an important feature now that Java5 is "mainline".
Since no practical workaround exist for that problem, per QA guidelines, and
to raise visibility of that issue, I'm moving to P2.

Comment 7 Martin Entlicher 2007-10-31 16:13:31 UTC
We know about several problems in NetBeans evaluator, which are of similar severity.
I've created an umbrella issue for that already - issue #108873.

We plan to rewrite the evaluator algorithm from scratch into NetBeans 6.1, since addressing these issues in the current
code is problematic.
Comment 8 cberger 2007-10-31 16:16:51 UTC
Hmm, o, but when is NetBeans 6.1 planned?
I see no mention of it in http://www.netbeans.org/community/releases/roadmap.html
Comment 9 Martin Entlicher 2007-10-31 16:26:32 UTC
I do not know, it's not scheduled yet. But fixing evaluator is not doable into 6.0, we're approaching code-freeze. We've
talked about it in the bug-fixing period, but there were other, more severe defects.
We expect to work on the rewrite after 6.0 is released, so it can be either a part of 6.1 or perhaps some hot-fix update
on Update Center. This is still TBD.
Comment 10 Martin Entlicher 2007-12-13 17:23:25 UTC
Fixed in the new evaluator algorithm - see issue #108873.
Comment 11 Quality Engineering 2010-04-29 09:21:17 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.