Bug 78905 - [1.5][compiler] Wrong hex decimal floating point literal is not rejected
Summary: [1.5][compiler] Wrong hex decimal floating point literal is not rejected
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-17 18:40 EST by Olivier Thomann CLA
Modified: 2004-12-14 10:07 EST (History)
0 users

See Also:


Attachments
Apply on HEAD (1.94 KB, patch)
2004-11-17 23:18 EST, Olivier Thomann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.