Bug 28242 - can't extract constant
Summary: can't extract constant
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Rory Lucyshyn-Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 28296
Blocks:
  Show dependency tree
 
Reported: 2002-12-13 04:33 EST by Christof Marti CLA
Modified: 2002-12-18 12:44 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christof Marti CLA 2002-12-13 04:33:35 EST
reproducable in I20021210 with the following steps and code:

- select "3.14f"
- extract constant

public class Test {

	public Test() {
		int a= 2;
		int b= (int) (3.14f * a); //can't extract constant "3.14f"
	}

}
Comment 1 Adam Kiezun CLA 2002-12-13 04:39:47 EST
yeah, that should work
Comment 2 Rory Lucyshyn-Wright CLA 2002-12-13 16:37:41 EST
caused by parser bug.
bug #28296.
This bug has been marked with the dependency.
Comment 3 Rory Lucyshyn-Wright CLA 2002-12-18 12:44:22 EST
fixed, since 28296 is fixed