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 159897 - No ClassCast or Fix class hierarchy tips in java file
Summary: No ClassCast or Fix class hierarchy tips in java file
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2009-03-09 11:46 UTC by navneet
Modified: 2015-01-21 12:30 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description navneet 2009-03-09 11:46:07 UTC
I have a maven web project. I created the following class:

public class MyWicketApplication extends WebApplication {

    public Class<? extends Page> getHomePage() {
        return HomePage.class;


I get a red icon on the line "return HomePage.class"  stating "incompatible types". It does not give me a choice to fix
the type, or typecast it.
Comment 1 Max Sauer 2009-03-09 11:52:50 UTC
Add Cast currently does not support this scenerio. Good enhancement though, thanks.