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 223096 - Variables window String.format() "Can't assign primitive value to object"
Summary: Variables window String.format() "Can't assign primitive value to object"
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.2.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-01 10:44 UTC by almson
Modified: 2012-12-05 02:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description almson 2012-12-01 10:44:08 UTC
In the Variables window, when String.format(String format, Object... args) is called with one primitive argument (eg of type double), the expression works. When more than one argument is passed, the Variables window reports "Can't assign primitive value to object"

This works:
   String.format("%f", a)
This does not work:
   String.format("%f %f", a, b)
where both a and b are local variables of type double
Comment 1 Martin Entlicher 2012-12-03 15:10:18 UTC
Fixed by changeset:   241891:9df44177bf66
http://hg.netbeans.org/core-main/rev/9df44177bf66
Comment 2 Quality Engineering 2012-12-05 02:56:21 UTC
Integrated into 'main-golden', will be available in build *201212050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9df44177bf66
User: mentlicher@netbeans.org
Log: #223096: Create an array argument for varargs arguments.