Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#955 Cast to undefined class causes assertion failure

open
nobody
parser (295)
5
2007-02-06
2007-02-06
Anonymous
No

Jikes 1.22 fails as follows:

jikes: expr.cpp:5024: LiteralValue* Semantic::CastValue(const TypeSymbol*, AstExpression*): Assertion `literal_value' failed.
Aborted

on the following three-line program:

public class Foo {
byte retval=(byet)0xA0;
}

In contrast, javac puts out an error message:
Foo.java:2: cannot resolve symbol
symbol : class byet
location: class Foo
byte baz=(byet)0xA0;
^
1 error

Discussion