Community
Participate
Working Groups
SoftExceptions should print not only their trace but also that of the wrapped throwable. We should be able to set a flag on class initialization whether we are running under 1.4 and then implement it under 1.4 using initCause() and otherwise by direct delegation. I can do this fix if we're agreed.
I think it would be simpler to just fix this so that we do the correct thing under 1.4 which supports this notion of nested exceptions, but not to change our behavior under 1.3. However, I have no objections to your fix so long as you're careful to not break the runtime on earlier VMs. We're still promising that aspectjrt.jar will work on 1.1.
fixed in tree. JUnit test passes under 1.1, 1.3, and 1.4.
forgot target 1.2M1 I must say I thought we should use initCause: ----- public SoftException(Throwable inner) { super(); this.inner = inner; if (HAVE_JAVA14 && (null != inner)) { initCause(inner); } } ----- but since you-all didn't when implementing getCause(), I left it as-is.
updating target flag to indicate inclusion in 1.2 release.