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 141378 - IllegalArgumentException: Attempt to use non-static field with ReferenceType
Summary: IllegalArgumentException: Attempt to use non-static field with ReferenceType
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Daniel Prusa
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-23 15:52 UTC by rodrigorsantos
Modified: 2010-04-29 09:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 33218


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rodrigorsantos 2008-07-23 15:52:25 UTC
Build: NetBeans IDE Dev (Build 200801280931)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Windows XP, 5.1, x86
User comments: 
STACKTRACE: (first 10 lines)
java.lang.IllegalArgumentException: Attempt to use non-static field with ReferenceType
        at com.sun.tools.jdi.ReferenceTypeImpl.getValues(ReferenceTypeImpl.java:636)
        at com.sun.tools.jdi.ReferenceTypeImpl.getValue(ReferenceTypeImpl.java:596)
        at org.netbeans.modules.debugger.jpda.expr.EvaluatorVisitor.visitMemberSelect(EvaluatorVisitor.java:1641)
        at org.netbeans.modules.debugger.jpda.expr.EvaluatorVisitor.visitMemberSelect(EvaluatorVisitor.java:168)
        at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1662)
        at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:49)
        at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl$15.run(EditorContextImpl.java:1525)
        at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl$15.run(EditorContextImpl.java:1483)
        at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:621)
        at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl.parseExpression(EditorContextImpl.java:1482)
Comment 1 Daniel Prusa 2008-08-04 12:55:20 UTC
Steps to reproduce:
Have a class 'Clazz' with an instance field 'number', type Clazz.number into expression evaluator.
Comment 2 Daniel Prusa 2008-08-04 13:52:57 UTC
Fixed.
changeset 0e3dd3706780 in main
details: http://hg.netbeans.org/main?cmd=changeset;node=0e3dd3706780
Comment 3 Quality Engineering 2008-08-05 16:32:54 UTC
Integrated into 'main-golden', available in build *200808051401* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/0e3dd3706780
User: Daniel Prusa <dprusa@netbeans.org>
Log: #141378: IllegalArgumentException: Attempt to use non-static field with ReferenceType
Comment 4 Quality Engineering 2010-04-29 09:41:46 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.