xp-framework/xp-framework — Issue #132: Namespaced classes not usable in generics
Author: kiesel
Created: 2012-03-08 06:23:27+00:00
State: open

Reproduce code:

* File myns/MyClass.class.php:

```php

```

* File myns/Runnable.class.php:

```php
');
}
}
?>
```

Result:

```
alex@seventwo [07:22:34] [~/dev/xp.public/core] [xp5_9 *]
-> % xp myns.Runnable;
Parse error: syntax error, unexpected T_NS_SEPARATOR, expecting '{' in C:\cw\home\alex\dev\xp.public\core\src\main\php\lang\XPClass.class.php(1155) : eval()'d code on line1
Uncaught exception: Exception lang.reflect.TargetInvocationException (myns\Runnable::main)
at lang.reflect.Method::invoke(NULL, array[1]) [line 91 of class.php]
Caused by Exception lang.XPException (Class IList▒▒myns\MyClass does not exist)
```