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 27618 Details for
Bug 109940
[dom] IllegalArgumentException is thrown in CharacterLiteral.charValue()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_109940.txt (text/plain), 1.58 KB, created by
Olivier Thomann
on 2005-09-28 11:24:06 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-09-28 11:24:06 EDT
Size:
1.58 KB
patch
obsolete
>Index: CharacterLiteral.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CharacterLiteral.java,v >retrieving revision 1.31 >diff -u -r1.31 CharacterLiteral.java >--- CharacterLiteral.java 4 Apr 2005 17:35:08 -0000 1.31 >+++ CharacterLiteral.java 28 Sep 2005 15:23:49 -0000 >@@ -265,22 +265,21 @@ > throw new IllegalArgumentException("illegal character literal");//$NON-NLS-1$ > } > number = (number * 8) + Character.getNumericValue(nextChar); >- } >- nextChar = (char) scanner.getNextChar(); >- if (nextChar == -1) { >- throw new IllegalArgumentException("illegal character literal");//$NON-NLS-1$ >- } >- if (nextChar != '\'') { >- if (!Character.isDigit(nextChar)) { >+ nextChar = (char) scanner.getNextChar(); >+ if (nextChar == -1) { > throw new IllegalArgumentException("illegal character literal");//$NON-NLS-1$ > } >- number = (number * 8) + Character.getNumericValue(nextChar); >+ if (nextChar != '\'') { >+ if (!Character.isDigit(nextChar)) { >+ throw new IllegalArgumentException("illegal character literal");//$NON-NLS-1$ >+ } >+ number = (number * 8) + Character.getNumericValue(nextChar); >+ } > } >- value = (char) number; >+ return (char) number; > } else { > throw new IllegalArgumentException("illegal character literal");//$NON-NLS-1$ > } >- break; > } > nextChar = (char) scanner.getNextChar(); > if (nextChar == -1) {
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 109940
:
27319
| 27618 |
27619