Bug 45747 - Not used disappears when error in method.
Summary: Not used disappears when error in method.
Status: RESOLVED DUPLICATE of bug 45777
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-29 14:11 EST by Brett Kotch CLA
Modified: 2003-10-30 06:13 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brett Kotch CLA 2003-10-29 14:11:27 EST
Using the following code as an example: 

	private String thanksgiving() {
		return holidayCheer();
	}

This code is not called from any other place. When the text is typed, the "not 
used" markers correctly appear on thanksgiving()

Introducing an error into holidayCheer, i.e. 

	private String thanksgiving() {
		return holidayCheer);
	}

disables the not used markers and shows a red squigly line under the paren.
Comment 1 Dani Megert CLA 2003-10-30 06:07:10 EST
This examples assumes
- the compiler setting to warn about unused methods is set to warning or error
- holidaysCheer() exists

Moving to J Core since they report the problems.
Comment 2 Dani Megert CLA 2003-10-30 06:13:31 EST

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