JDK-8171074 : Test api/javax_swing/UIManager/index.html\#Methods is failing
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 9
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-12-12
  • Updated: 2017-01-05
  • Resolved: 2016-12-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b151Fixed
Related Reports
Relates :  
Description
Test api/javax_swing/UIManager/index.html\#Methods is failing due to java.lang.InstantiationException.
Comments
This is something that won't affect real code. It is only failing in the case when the caller is doing something that would cause a failure in previous releases. It is just the precise reason for the failure that is different. The method setLookAndFeel(String className) declares that - amongst other exceptions - it may throw InstantiationException or IllegalAccessException. This conformance test appears to be expecting IllegalAccessException but instead gets InstantiationException. Previously the code just propagated whatever Class.newInstance() threw. We can probably revert to doing that.
12-12-2016

Regression of JDK-8155874
12-12-2016

Please see jtr for more details.
12-12-2016

RULE "api/javax_swing/UIManager/index_Methods" Exception java.lang.IllegalAccessException: class javax.swing.UIManager (in module java.desktop) cannot access a member of class javasoft.sqe.tests.api.javax.swing.UIManager.stubs.IllegalAccessEx with modifiers "" RULE "api/javax_swing/UIManager/index_Methods" Exception java.lang.InstantiationException: Wrapped Exception RULE "api/javax_swing/UIManager/index_Methods" TestCase [setLAF0005] Unexpected exception: java.lang.InstantiationException: Wrapped Exception
12-12-2016