-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b33
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084384 | emb-9 | Yuri Nesterenko | P3 | Resolved | Fixed | team |
Certain jdk regression tests, some 60 of them, depend on sun.awt.OSInfo class designed as a tool to standardize determination of current Operating System. This (internal) dependency should be removed from tests and obviously retained in base classes.
There's two ways to provide the same functionality to the tests. First, to move OSInfo.java to the public package (e.g. java.awt). Second, copy and paste it to a helper class in the test hierarchy.
First approach does require changes in several (some 8) swing classes and additions to the public API (read, painful discussions and CCC procedure).
Second would require support of 2 identical classes, one in jdk and another in jdk/test.
There's two ways to provide the same functionality to the tests. First, to move OSInfo.java to the public package (e.g. java.awt). Second, copy and paste it to a helper class in the test hierarchy.
First approach does require changes in several (some 8) swing classes and additions to the public API (read, painful discussions and CCC procedure).
Second would require support of 2 identical classes, one in jdk and another in jdk/test.
- backported by
-
JDK-8084384 Provide OSInfo functionality to regression tests
-
- Resolved
-