|
|
|
Приведение к типу массив
|
|||
|---|---|---|---|
|
#18+
Доброе утро. Есть такой код: Result res = inst.getResult(q, new Locale("rus", "ru"), 1, Integer.MAX_VALUE, null, (Attribute[])imd.getAttributes().toArray(), null, true); Из-за этого фрагмента (Attribute[])imd.getAttributes() выбрасывается исключение ClassCastException. Причем точно известно, что getAttributes().toArray() возвращает массив объектов типа Attribute. Как нужно правильно приводить типы? Заранее спасибо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.01.2006, 06:56:11 |
|
||
|
|

start [/forum/topic.php?fid=59&fpage=755&tid=2150405]: |
0ms |
get settings: |
18ms |
get forum list: |
30ms |
check forum access: |
7ms |
check topic access: |
7ms |
track hit: |
45ms |
get topic data: |
15ms |
get forum data: |
4ms |
get page messages: |
61ms |
get tp. blocked users: |
2ms |
| others: | 336ms |
| total: | 525ms |

| 0 / 0 |
