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.
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)
Evaluation of this issue is blocked by issue #134027.
This issue has already 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=46723
This issue has already 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=46723
mentlicher, Just making sure you're aware this issue is now unblocked.
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()); } }
Fixed in trunk, changeset: 87190:bb6833f81841 http://hg.netbeans.org/main/rev/bb6833f81841
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.
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.