Bug 82616

Summary: CharacterLiteral.charValue fails for '\000'
Product: [Eclipse Project] JDT Reporter: David Mandelin <mandelin>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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