Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #8411 > unrolled thread
| Started by | Jan Burse <janburse@fastmail.fm> |
|---|---|
| First post | 2011-09-30 15:57 +0200 |
| Last post | 2011-10-01 21:15 +0300 |
| Articles | 3 on this page of 23 — 5 participants |
Back to article view | Back to comp.lang.java.programmer
Avoid creating a stacktrace prior to JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-09-30 15:57 +0200
Re: Avoid creating a stacktrace prior to JDK 1.7 Stanimir Stamenkov <s7an10@netscape.net> - 2011-10-01 13:27 +0300
Re: Avoid creating a stacktrace prior to JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-10-01 13:22 +0200
Re: Avoid creating a stacktrace prior to JDK 1.7 Lew <lewbloch@gmail.com> - 2011-10-01 09:10 -0700
Re: Avoid creating a stacktrace prior to JDK 1.7 Stanimir Stamenkov <s7an10@netscape.net> - 2011-10-01 20:31 +0300
Re: Avoid creating a stacktrace prior to JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-10-01 20:02 +0200
Re: Avoid creating a stacktrace prior to JDK 1.7 Lew <lewbloch@gmail.com> - 2011-10-01 12:21 -0700
Re: Avoid creating a stacktrace prior to JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-10-01 22:04 +0200
Re: Avoid creating a stacktrace prior to JDK 1.7 Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-10-01 16:24 -0400
Re: Avoid creating a stacktrace prior to JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-10-01 23:14 +0200
Re: Avoid creating a stacktrace prior to JDK 1.7 Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-10-01 17:28 -0400
Re: Avoid creating a stacktrace prior to JDK 1.7 Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-10-01 23:45 +0000
Re: Avoid creating a stacktrace prior to JDK 1.7 Stanimir Stamenkov <s7an10@netscape.net> - 2011-10-02 00:58 +0300
Re: Avoid creating a stacktrace prior to JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-10-02 02:04 +0200
Re: Avoid creating a stacktrace prior to JDK 1.7 Lew <lewbloch@gmail.com> - 2011-10-01 20:06 -0700
Re: Avoid creating a stacktrace prior to JDK 1.7 Stanimir Stamenkov <s7an10@netscape.net> - 2011-10-02 13:14 +0300
Re: Avoid creating a stacktrace prior to JDK 1.7 Lew <lewbloch@gmail.com> - 2011-10-02 08:37 -0700
Re: Avoid creating a stacktrace prior to JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-10-02 20:26 +0200
Re: Avoid creating a stacktrace prior to JDK 1.7 Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-10-02 17:51 -0400
Re: Avoid creating a stacktrace prior to JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-10-03 01:32 +0200
Re: Avoid creating a stacktrace prior to JDK 1.7 Stanimir Stamenkov <s7an10@netscape.net> - 2011-10-01 20:19 +0300
Re: Avoid creating a stacktrace prior to JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-10-01 20:04 +0200
Re: Avoid creating a stacktrace prior to JDK 1.7 Stanimir Stamenkov <s7an10@netscape.net> - 2011-10-01 21:15 +0300
Page 2 of 2 — ← Prev page 1 [2]
| From | Stanimir Stamenkov <s7an10@netscape.net> |
|---|---|
| Date | 2011-10-01 20:19 +0300 |
| Message-ID | <j67i3k$1n0$1@dont-email.me> |
| In reply to | #8436 |
Sat, 01 Oct 2011 13:27:39 +0300, /Stanimir Stamenkov/:
> You may perform a check which avoids the exceptional situation like:
>
> Class<?> class;
> try {
> class = (Class.getResource(str + ".class") != null)
I guess the above line should be rewritten like:
String resourceName = '/' + str.replace('.', '/') + ".class";
class = (Class.getResource(resourceName) != null)
to function properly.
> ? Class.forName(str)
> : null;
> } catch (ClassNotFoundException x) {
> class = null;
> }
--
Stanimir
[toc] | [prev] | [next] | [standalone]
| From | Jan Burse <janburse@fastmail.fm> |
|---|---|
| Date | 2011-10-01 20:04 +0200 |
| Message-ID | <j67knh$qf3$2@news.albasani.net> |
| In reply to | #8449 |
Hi
And how about suppressing back trace fetch in
an exception class, can this be done prior to
JDK 1.6?
Bye
Stanimir Stamenkov schrieb:
> Sat, 01 Oct 2011 13:27:39 +0300, /Stanimir Stamenkov/:
>
>> You may perform a check which avoids the exceptional situation like:
>>
>> Class<?> class;
>> try {
>> class = (Class.getResource(str + ".class") != null)
>
> I guess the above line should be rewritten like:
>
> String resourceName = '/' + str.replace('.', '/') + ".class";
> class = (Class.getResource(resourceName) != null)
>
> to function properly.
>
>> ? Class.forName(str)
>> : null;
>> } catch (ClassNotFoundException x) {
>> class = null;
>> }
>
[toc] | [prev] | [next] | [standalone]
| From | Stanimir Stamenkov <s7an10@netscape.net> |
|---|---|
| Date | 2011-10-01 21:15 +0300 |
| Message-ID | <j67lc6$mrr$1@dont-email.me> |
| In reply to | #8452 |
Sat, 01 Oct 2011 20:04:29 +0200, /Jan Burse/: > And how about suppressing back trace fetch in > an exception class, can this be done prior to > JDK 1.6? May be just as global JVM specific setting, but I'm not aware of one. -- Stanimir
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.java.programmer
csiph-web