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 233232 - ClassCastException: java.lang.String cannot be cast to java.lang.Number
Summary: ClassCastException: java.lang.String cannot be cast to java.lang.Number
Status: RESOLVED DUPLICATE of bug 230708
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 233628 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-07-23 08:57 UTC by J Bachorik
Modified: 2013-08-06 13:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 202421


Attachments
stacktrace (4.83 KB, text/plain)
2013-07-23 08:57 UTC, J Bachorik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J Bachorik 2013-07-23 08:57:58 UTC
This bug was originally marked as duplicate of bug 230708, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201307222300)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: Linux

User Comments:
yardus: bg scan openjdk




Stacktrace: 
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number
   at com.sun.tools.javac.jvm.Items$ImmediateItem.coerce(Items.java:648)
   at com.sun.tools.javac.jvm.Items$Item.coerce(Items.java:269)
   at com.sun.tools.javac.jvm.Gen.genExpr(Gen.java:937)
   at com.sun.tools.javac.jvm.Gen.genArgs(Gen.java:954)
   at com.sun.tools.javac.jvm.Gen.visitNewClass(Gen.java:1907)
   at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1514)
Comment 1 J Bachorik 2013-07-23 08:57:59 UTC
Created attachment 137605 [details]
stacktrace
Comment 2 Jan Lahoda 2013-07-30 15:27:26 UTC
*** Bug 233628 has been marked as a duplicate of this bug. ***
Comment 3 Dusan Balek 2013-08-06 13:19:32 UTC
Already reported.

*** This bug has been marked as a duplicate of bug 230708 ***