Bug 82616 - CharacterLiteral.charValue fails for '\000'
Summary: CharacterLiteral.charValue fails for '\000'
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 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-11 17:43 EST by David Mandelin CLA
Modified: 2005-02-16 10:10 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 David Mandelin CLA 2005-01-11 17:43:23 EST
I have an AST that contained a CharacterLiteral node for '\000' (from
org.eclipse.jdi.internal.SourceDebugExtensionParser, method nextChar,
specifically), and when I call charValue for that node, I get

java.lang.IllegalArgumentException: illegal character literal

I can work around it easily enough for my purposes right now.
Comment 1 Olivier Thomann CLA 2005-01-12 10:21:47 EST
Fixed and released in HEAD.
Regression tests added in ASTConverterTestAST3_2.test0583-594.
Comment 2 David Audel CLA 2005-02-16 10:10:34 EST
Verified in I20050215-2300