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 177904 - Overridden method used in code marked as unused.
Summary: Overridden method used in code marked as unused.
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Karol Harezlak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-01 03:24 UTC by Karol Harezlak
Modified: 2010-04-06 10:23 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 Karol Harezlak 2009-12-01 03:24:57 UTC
Overridden method testMethod() used in code marked as unused.

To reproduce it past this code:


import java.lang.UnsupportedOperationException;
import java.lang.ArithmeticException;

abstract class AbstractClass {
    abstract function testMethod();
}

var test = AbstractClass{
    override function testMethod() : Object {
        try {
            NewClass{}.addIt();
        } catch(ex : ArithmeticException) {
            ex.printStackTrace();
        }

        throw new UnsupportedOperationException('Not implemented yet');
    } 
};

test.testMethod();
Comment 1 Karol Harezlak 2010-04-01 14:45:21 UTC
fixed,

http://hg.netbeans.org/javafx/rev/aad59555105e
Comment 2 Alexandr Scherbatiy 2010-04-06 10:23:56 UTC
verified in NetBeans-JavaFX-Soma: #211