Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 160265 - AntBasedGenericType incorrectly rethrows IOException
AntBasedGenericType incorrectly rethrows IOException
Status: RESOLVED FIXED
Product: projects
Classification: Unclassified
Component: Ant Project
6.x
All All
: P3 (vote)
: 6.x
Assigned To: Jaroslav Tulach
issues@projects
: REGRESSION
Depends on:
Blocks: 153655 160262
  Show dependency treegraph
 
Reported: 2009-03-13 16:17 UTC by Jesse Glick
Modified: 2009-03-17 08:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-03-13 16:17:07 UTC
See issue #160262 for full stack trace. AntBasedGenericType is catching an IOException properly thrown from
NbModuleProject.<init>, yet rethrowing as an IAE, which is not permitted. An IOException would have been caught and
logged at FINE by SFOQI, but an IAE is reported as an error.
Comment 1 Jaroslav Tulach 2009-03-13 17:01:20 UTC
Ok. I see.
Comment 2 Jesse Glick 2009-03-13 17:06:25 UTC
Probably should deconstruct any InvocationTargetException, which produces three cases:

1. IOException -> rethrow

2. RuntimeException -> rethrow (was already illegal, can't make it worse)

3. other -> raise as assertion error; should not happen assuming that ann proc preverifies that constructor or factory
method lists at most IOException in throws clause
Comment 3 Jaroslav Tulach 2009-03-13 17:47:02 UTC
core-main#e94ee0d684a0
Comment 4 Quality Engineering 2009-03-17 08:32:26 UTC
Integrated into 'main-golden', will be available in build *200903170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e94ee0d684a0
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #160265: Correctly propagating IOException thrown from the reflection called code


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo