forked from JavaTX/JavaCompilerCore
Kleiner Bug beseitigt
This commit is contained in:
parent
4fbcf87e0c
commit
59569380ed
@ -825,7 +825,9 @@ public class StatementGenerator {
|
|||||||
}else if(literal.CharacterLiteral() != null){
|
}else if(literal.CharacterLiteral() != null){
|
||||||
RefType type = new RefType(reg.getName("java.lang.Character"),literal.getStart());
|
RefType type = new RefType(reg.getName("java.lang.Character"),literal.getStart());
|
||||||
return new Literal(type,
|
return new Literal(type,
|
||||||
literal.CharacterLiteral().getText().charAt(0),
|
// das gibt immer ' zurück, der Char befindet sich in Position 1
|
||||||
|
//literal.CharacterLiteral().getText().charAt(0),
|
||||||
|
literal.CharacterLiteral().getText().charAt(1),
|
||||||
literal.getStart());
|
literal.getStart());
|
||||||
}else if(literal.StringLiteral()!=null){
|
}else if(literal.StringLiteral()!=null){
|
||||||
RefType type = new RefType(reg.getName("java.lang.String"),literal.getStart());
|
RefType type = new RefType(reg.getName("java.lang.String"),literal.getStart());
|
||||||
|
Loading…
Reference in New Issue
Block a user