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 73910 - VMD: CodeGen: Add support for classcast when factory method is used
Summary: VMD: CodeGen: Add support for classcast when factory method is used
Status: VERIFIED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Kaspar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-23 08:04 UTC by David Kaspar
Modified: 2006-10-06 10:02 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Kaspar 2006-03-23 08:04:01 UTC
Currently there is no support for specifying a "class-cast" code that should be
used in component initialization code in code generator.
This is required for handling components like SVGImage.
Comment 1 David Kaspar 2006-04-06 14:59:13 UTC
Fixed in trunk
Comment 2 Martin Brehovsky 2006-04-11 17:32:09 UTC
Verified - now I'm able to generate the follwing code line:


sVGImage2 = (javax.microedition.m2g.SVGImage)
javax.microedition.m2g.SVGImage.createImage(VisualMidlet.class.getResourceAsStream("/hello/menu_2way_A.svg"),
null);
Comment 3 Marian Mirilovic 2006-10-06 09:52:21 UTC
Too late for NB 5.5 - I guess.
Comment 4 David Kaspar 2006-10-06 10:02:31 UTC
Already fixed in NB55.