* [devel] Вопрос специалистам по Java/Ant
@ 2007-08-06 12:21 Vitaly Kuznetsov
2007-08-06 12:27 ` Damir Shayhutdinov
0 siblings, 1 reply; 4+ messages in thread
From: Vitaly Kuznetsov @ 2007-08-06 12:21 UTC (permalink / raw)
To: ALT Devel discussion list
Собираю некую софтину ant-ом, получаю
[javac]
/usr/src/RPM/BUILD/fedora-ds-console-1.1.0/src/com/netscape/management/client/preferences/FilePreferenceManager.java:49:
reference to Console is ambiguous, both class
com.netscape.management.client.console.Console in
com.netscape.management.client.console and class java.io.Console in
java.io match
[javac] File f = new File(Console.PREFERENCE_DIR);
Можно ли как-то сказать ему о приоритете
com.netscape.management.client.console.Console?
Или каким-нибудь образом заставить не использовать java.io.Console?
Всё это возникает при использовании jdk > j2se1.4
При сборке с j2se1.4 всё нормально.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [devel] Вопрос специалистам по Java/Ant
2007-08-06 12:21 [devel] Вопрос специалистам по Java/Ant Vitaly Kuznetsov
@ 2007-08-06 12:27 ` Damir Shayhutdinov
2007-08-06 12:37 ` Vitaly Kuznetsov
0 siblings, 1 reply; 4+ messages in thread
From: Damir Shayhutdinov @ 2007-08-06 12:27 UTC (permalink / raw)
To: ALT Devel discussion list
/usr/src/RPM/BUILD/fedora-ds-console-1.1.0/src/com/netscape/management/client/preferences/FilePreferenceManager.java:49:
> reference to Console is ambiguous, both class
> com.netscape.management.client.console.Console in
> com.netscape.management.client.console and class java.io.Console in
> java.io match
> [javac] File f = new File(Console.PREFERENCE_DIR);
>
> Можно ли как-то сказать ему о приоритете
> com.netscape.management.client.console.Console?
Можно указать полное имя класса.
То есть File f = new
File(com.netscape.management.client.console.Console.PREFERENCE_DIR);
> Или каким-нибудь образом заставить не использовать java.io.Console?
Просто не надо импортировать все из java.io.*, а импортировать только
нужные классы.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [devel] Вопрос специалистам по Java/Ant
2007-08-06 12:27 ` Damir Shayhutdinov
@ 2007-08-06 12:37 ` Vitaly Kuznetsov
2007-08-06 12:52 ` Mikhail A. Pokidko
0 siblings, 1 reply; 4+ messages in thread
From: Vitaly Kuznetsov @ 2007-08-06 12:37 UTC (permalink / raw)
To: ALT Devel discussion list
Damir Shayhutdinov пишет:
> /usr/src/RPM/BUILD/fedora-ds-console-1.1.0/src/com/netscape/management/client/preferences/FilePreferenceManager.java:49:
>> reference to Console is ambiguous, both class
>> com.netscape.management.client.console.Console in
>> com.netscape.management.client.console and class java.io.Console in
>> java.io match
>> [javac] File f = new File(Console.PREFERENCE_DIR);
>>
>> Можно ли как-то сказать ему о приоритете
>> com.netscape.management.client.console.Console?
> Можно указать полное имя класса.
Как вариант, но тогда надо править 400 исходных файлов
>
>> Или каким-нибудь образом заставить не использовать java.io.Console?
> Просто не надо импортировать все из java.io.*, а импортировать только
> нужные классы.
А сказать все/кроме нет способа?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [devel] Вопрос специалистам по Java/Ant
2007-08-06 12:37 ` Vitaly Kuznetsov
@ 2007-08-06 12:52 ` Mikhail A. Pokidko
0 siblings, 0 replies; 4+ messages in thread
From: Mikhail A. Pokidko @ 2007-08-06 12:52 UTC (permalink / raw)
To: ALT Devel discussion list
06.08.07, Vitaly Kuznetsov написал(а):
> Damir Shayhutdinov пишет:
> > /usr/src/RPM/BUILD/fedora-ds-console-1.1.0/src/com/netscape/management/client/preferences/FilePreferenceManager.java:49:
> >> reference to Console is ambiguous, both class
> >> com.netscape.management.client.console.Console in
> >> com.netscape.management.client.console and class java.io.Console in
> >> java.io match
> >> [javac] File f = new File(Console.PREFERENCE_DIR);
> >>
> >> Можно ли как-то сказать ему о приоритете
> >> com.netscape.management.client.console.Console?
> > Можно указать полное имя класса.
>
> Как вариант, но тогда надо править 400 исходных файлов
find + sed
--
Mikhail A. Pokidko
ALTLinux Team
e-mail: pma@altlinux.org
xmpp: solar@gmail.ru
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-06 12:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-06 12:21 [devel] Вопрос специалистам по Java/Ant Vitaly Kuznetsov
2007-08-06 12:27 ` Damir Shayhutdinov
2007-08-06 12:37 ` Vitaly Kuznetsov
2007-08-06 12:52 ` Mikhail A. Pokidko
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git