Bug 78905

Summary: [1.5][compiler] Wrong hex decimal floating point literal is not rejected
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Apply on HEAD none

Description Olivier Thomann CLA 2004-11-17 18:40:08 EST
Using latest,

The following code is not rejected.

public class X {
	public static void main(String[] args) {
		System.out.println(0x.p-2);
	}
}

The hexa decimal floating point should contain at least one hexadecimal digit.
Comment 1 Olivier Thomann CLA 2004-11-17 23:18:46 EST
Created attachment 15955 [details]
Apply on HEAD
Comment 2 Olivier Thomann CLA 2004-11-18 00:02:49 EST
Fixed and released in HEAD.
Regresion test added in ScannerTest.
PublicScanner updated.
Comment 3 Jerome Lanneluc CLA 2004-12-14 10:07:10 EST
Verified (in I200412140010) that an error is reported.