|
|
|
Приведение к типу массив
|
|||
|---|---|---|---|
|
#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 |
|
||
|
|

start [/forum/topic.php?desktop=1&fid=59&tid=2150405]: |
0ms |
get settings: |
6ms |
get forum list: |
15ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
157ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
39ms |
get tp. blocked users: |
1ms |
| others: | 208ms |
| total: | 441ms |

| 0 / 0 |
