You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "ARUNAVA SINHA (JIRA)" <ji...@apache.org> on 2019/02/07 11:42:00 UTC

[jira] [Resolved] (NETBEANS-2016) TestCases failure as expected exception is not thrown inside try block

     [ https://issues.apache.org/jira/browse/NETBEANS-2016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ARUNAVA SINHA resolved NETBEANS-2016.
-------------------------------------
    Resolution: Fixed

> TestCases failure as expected exception is not thrown inside try block
> ----------------------------------------------------------------------
>
>                 Key: NETBEANS-2016
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2016
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Hints
>            Reporter: ARUNAVA SINHA
>            Assignee: ARUNAVA SINHA
>            Priority: Major
>             Fix For: 11.0
>
>         Attachments: netbeans-2016.patch
>
>
> Below TestCases failed with Error:
> testSingleParentException(org.netbeans.modules.java.hints.bugs.BroadCatchBlockTest)
> testCommonParentsWithoutUmbrellas(org.netbeans.modules.java.hints.bugs.BroadCatchBlockTest)
> testTwoCommonParentFixMultiCatch(org.netbeans.modules.java.hints.bugs.BroadCatchBlockTest) 
> testCommonParentSuppressed(org.netbeans.modules.java.hints.bugs.BroadCatchBlockTest) 
> testTwoSubexceptionsGeneric(org.netbeans.modules.java.hints.bugs.BroadCatchBlockTest) 
> testTwoCommonParentFixSeparateCatches(org.netbeans.modules.java.hints.bugs.BroadCatchBlockTest) 
> testTwoSubexceptionsGeneric7(org.netbeans.modules.java.hints.bugs.BroadCatchBlockTest) 
> testUmbrellaWithOneSubtype(org.netbeans.modules.java.hints.bugs.BroadCatchBlockTest) 
> testRecordExceptionsFromNoArgMethod(org.netbeans.modules.java.hints.bugs.NPECheckTest) 
> testThrowableAssignedToExceptionParameter(org.netbeans.modules.java.hints.bugs.ThrowableNotThrownTest) 
> testMethodInvokedOnThrowable(org.netbeans.modules.java.hints.bugs.ThrowableNotThrownTest) 
> testThrowableCompared(org.netbeans.modules.java.hints.bugs.ThrowableNotThrownTest) 
> testGetCauseAloneReported(org.netbeans.modules.java.hints.bugs.ThrowableNotThrownTest) 
> testGetCausePassedOn(org.netbeans.modules.java.hints.bugs.ThrowableNotThrownTest) 
> test203139(org.netbeans.modules.java.hints.jdk.JoinCatchesTest) 
> test234085(org.netbeans.modules.java.hints.jdk.JoinCatchesTest) 
> test224028(org.netbeans.modules.java.hints.bugs.NPECheckTest) 
> testSimpleFlow(org.netbeans.modules.java.hints.jdk.ConvertToStringSwitchTest) 
> testSimpleNoStringArgNotStrict(org.netbeans.modules.java.hints.jdk.ThrowableInitCauseTest) 
> testSimpleNoStringArgStrict(org.netbeans.modules.java.hints.jdk.ThrowableInitCauseTest) 
> testSimple1(org.netbeans.modules.java.hints.jdk.ThrowableInitCauseTest) 
> testSimple2(org.netbeans.modules.java.hints.jdk.ThrowableInitCauseTest) 
> testSimple3(org.netbeans.modules.java.hints.jdk.ThrowableInitCauseTest) 
> testExpression(org.netbeans.modules.java.hints.jdk.ThrowableInitCauseTest) 
> testFinalVariable(org.netbeans.modules.java.hints.jdk.ThrowableInitCauseTest) 
> testHintPosFinally(org.netbeans.modules.java.hints.jdk.UseSpecificCatchTest) 
> testParametrizedTypeException(org.netbeans.modules.java.hints.jdk.UseSpecificCatchTest)
>  
> Sample Error Description:
>  
> Testcase: testGetCauseAloneReported(org.netbeans.modules.java.hints.bugs.ThrowableNotThrownTest): Caused an ERROR
> 9:5 exception InvocationTargetException is never thrown in body of corresponding try statement
> java.lang.AssertionError: 9:5 exception InvocationTargetException is never thrown in body of corresponding try statement
> at org.netbeans.modules.java.hints.test.api.HintTest.ensureCompilable(HintTest.java:379)
> at org.netbeans.modules.java.hints.test.api.HintTest.run(HintTest.java:458)
> at org.netbeans.modules.java.hints.test.api.HintTest.run(HintTest.java:443)
> at org.netbeans.modules.java.hints.bugs.ThrowableNotThrownTest.testGetCauseAloneReported(ThrowableNotThrownTest.java:230)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists