Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 15955 Details for
Bug 78905
[1.5][compiler] Wrong hex decimal floating point literal is not rejected
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD
patch_78905.txt (text/plain), 1.94 KB, created by
Olivier Thomann
on 2004-11-17 23:18:46 EST
(
hide
)
Description:
Apply on HEAD
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2004-11-17 23:18:46 EST
Size:
1.94 KB
patch
obsolete
>Index: compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java,v >retrieving revision 1.128 >diff -u -r1.128 Scanner.java >--- compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java 9 Nov 2004 10:28:28 -0000 1.128 >+++ compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java 18 Nov 2004 04:16:07 -0000 >@@ -3062,7 +3062,13 @@ > } > // hexadeciman floating point literal > // read decimal part >+ boolean hasNoDigitsBeforeDot = end == start; >+ start = this.currentPosition; > while (getNextCharAsDigit(16)){/*empty*/} >+ end = this.currentPosition; >+ if (hasNoDigitsBeforeDot && end == start) { >+ throw new InvalidInputException(INVALID_HEXA); >+ } > > if (getNextChar('p', 'P') >= 0) { // consume next character > this.unicodeAsBackSlash = false; >Index: model/org/eclipse/jdt/internal/core/util/PublicScanner.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/PublicScanner.java,v >retrieving revision 1.57 >diff -u -r1.57 PublicScanner.java >--- model/org/eclipse/jdt/internal/core/util/PublicScanner.java 9 Nov 2004 11:09:34 -0000 1.57 >+++ model/org/eclipse/jdt/internal/core/util/PublicScanner.java 18 Nov 2004 04:16:09 -0000 >@@ -3059,7 +3059,13 @@ > } > // hexadeciman floating point literal > // read decimal part >+ boolean hasNoDigitsBeforeDot = end == start; >+ start = this.currentPosition; > while (getNextCharAsDigit(16)){/*empty*/} >+ end = this.currentPosition; >+ if (hasNoDigitsBeforeDot && end == start) { >+ throw new InvalidInputException(INVALID_HEXA); >+ } > > if (getNextChar('p', 'P') >= 0) { // consume next character > this.unicodeAsBackSlash = false;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 78905
: 15955