|
|
|
Приведение к типу массив
|
|||
|---|---|---|---|
|
#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?fid=59&msg=33496369&tid=2150405]: |
0ms |
get settings: |
9ms |
get forum list: |
17ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
157ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
36ms |
get tp. blocked users: |
1ms |
| others: | 203ms |
| total: | 440ms |

| 0 / 0 |
