RFR: 7308: Move non-Eclipse dependant classes from org.openjdk.jmc.ui.common to org.openjdk.jmc.common [v4]

Alex Macdonald aptmac at openjdk.org
Mon May 15 16:59:05 UTC 2023


> This PR addresses JMC-7308 [[0]](https://bugs.openjdk.java.net/browse/JMC-7308), in which it would be helpful to have some of the classes currently in jmc.ui.common shipped in core.
> 
> There are a number of classes currently in jmc.ui.common that would be a great asset to the core distribution (and the third-party applications that consume jmc-core), and these classes could live in jmc.common.
> 
> It isn't as straightforward as moving all of the packages to core, as there are still classes in these jmc.ui.common packages that have dependencies on Eclipse or rjmx. Having said that, the ones listed below can be moved without much difficulty:
> 
> - org.openjdk.jmc.ui.common.action (3)
>     Executable, IActionProvider, IUserAction
> 
> - org.openjdk.jmc.ui.common.jvm (5)
>     Connectable, JVMArch, JVMCommandLineToolkit, JVMDescriptor, JVMType
> 
> - org.openjdk.jmc.ui.common.resource (2)
>     IImageResource, Resource
> 
> - org.openjdk.jmc.ui.common.security (10)
>     ActionNotGrantedException, CredentialsNotAvailableException, FailedToSaveException, ICredentials, InMemoryCredentials, ISecurityManager, PersistentCredentials, SecurlyStoredByteArray, SecurityException, SecurityManagerFactory
> 
> - org.opendjk.jmc.ui.common.tree (3)
>     IArray, IChild, IParent
> 
> - org.openjdk.jmc.ui.common.util (4)
>     Environment, Filename, ICopyable, IObservable
> 
> - org.openjdk.jmc.ui.common.xydata (5)
>     DataSeries, DefautlTimestampedData, DefaultXYData, ITimeStampedData, IXYData
> 
> [0] https://bugs.openjdk.java.net/browse/JMC-7308

Alex Macdonald has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 13 commits:

 - Merge master
 - fix imports for PersistentCredentials
   
   I must have missed this when I rebased onto the master branch. Fixing it
   up here.
 - update license headers to 2022
 - update license headers
 - update agent plugin imports
 - migrate classes from ui.common.resource to core
 - migrate interfaces from ui.common.action to core
 - migrate most of the remainder from ui.common.security to core
 - migrate ui.common.xydata to core
 - migrate Environment, Filename, ICopyable, and IObservable from ui.common.util to core
 - ... and 3 more: https://git.openjdk.org/jmc/compare/58c9ede2...c06f3752

-------------

Changes: https://git.openjdk.org/jmc/pull/300/files
 Webrev: https://webrevs.openjdk.org/?repo=jmc&pr=300&range=03
  Stats: 620 lines in 174 files changed: 151 ins; 170 del; 299 mod
  Patch: https://git.openjdk.org/jmc/pull/300.diff
  Fetch: git fetch https://git.openjdk.org/jmc.git pull/300/head:pull/300

PR: https://git.openjdk.org/jmc/pull/300


More information about the jmc-dev mailing list