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

ARUNAVA SINHA updated NETBEANS-2016:
------------------------------------
    Comment: was deleted

(was: Below patch is merged in nb–javax repo)

> 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
>         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: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to