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 132786 - RuntimeException: Unexpected exception while invoking boxing method
Summary: RuntimeException: Unexpected exception while invoking boxing method
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Entlicher
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on: 134027
Blocks:
  Show dependency tree
 
Reported: 2008-04-14 16:08 UTC by _ gtzabari
Modified: 2010-04-29 09:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 46723


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2008-04-14 16:08:43 UTC
Build: NetBeans IDE Dev (Build 200804101202)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b21
OS: Windows Vista, 6.0, x86
User comments: Added expression to watch window which makes use of autoboxing
STACKTRACE: (first 10 lines)
java.lang.RuntimeException: Unexpected exception while invoking boxing method
        at org.netbeans.modules.debugger.jpda.expr.EvaluatorVisitor.box(EvaluatorVisitor.java:2643)
        at org.netbeans.modules.debugger.jpda.expr.EvaluatorVisitor.autoboxArguments(EvaluatorVisitor.java:2424)
        at org.netbeans.modules.debugger.jpda.expr.EvaluatorVisitor.invokeMethod(EvaluatorVisitor.java:2348)
        at org.netbeans.modules.debugger.jpda.expr.EvaluatorVisitor.visitMethodInvocation(EvaluatorVisitor.java:321)
        at org.netbeans.modules.debugger.jpda.expr.EvaluatorVisitor.visitMethodInvocation(EvaluatorVisitor.java:171)
        at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1312)
        at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:49)
        at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl.parseExpression(EditorContextImpl.java:1606)
        at sun.reflect.GeneratedMethodAccessor416.invoke(GeneratedMethodAccessor416.java:0)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Comment 1 Martin Entlicher 2008-04-26 21:49:43 UTC
Evaluation of this issue is blocked by issue #134027.
Comment 2 Exceptions Reporter 2008-06-10 11:12:00 UTC
This issue has already 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=46723
Comment 3 Exceptions Reporter 2008-06-26 12:05:03 UTC
This issue has already 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=46723
Comment 4 _ gtzabari 2008-06-26 17:33:39 UTC
mentlicher,

Just making sure you're aware this issue is now unblocked.
Comment 5 Martin Entlicher 2008-07-01 12:54:15 UTC
Can be reproduced via simple program, when trying to evaluate "box(1)" method:

public class Boxing {

    public static void main(String[] args) {
        box(1);
    }

    private static void box(Object o) {
        System.err.println("o = "+o+", class = "+o.getClass());
    }
}
Comment 6 Martin Entlicher 2008-07-01 13:56:23 UTC
Fixed in trunk, changeset:   87190:bb6833f81841
http://hg.netbeans.org/main/rev/bb6833f81841
Comment 7 Quality Engineering 2008-07-02 04:31:30 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #294 build
Changeset: http://hg.netbeans.org/main/rev/bb6833f81841
User: mentlicher@netbeans.org
Log: #132786 - The correct boxing type is found for given primitive value.
Comment 8 Quality Engineering 2010-04-29 09:39:21 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.