Skip to content

Console, GroovyMain and Groovysh (via its Main) use context class loader#942

Merged
daniellansun merged 1 commit intoapache:masterfrom
thomsonreuters:starter-support
May 31, 2019
Merged

Console, GroovyMain and Groovysh (via its Main) use context class loader#942
daniellansun merged 1 commit intoapache:masterfrom
thomsonreuters:starter-support

Conversation

@eric-milles
Copy link
Copy Markdown
Member

  • All: pass system properties to new CompilerConfiguration instances
  • Console: use default parameters to reduce constructor variants

As discussed with @paulk-asert; support for starting Colsole, et al. using GroovyStarter. This would allow separate classpath similar to how compiler has transform classpath (for tooling) and standard classpath (for user code).

See also groovy/groovy-eclipse#890

NOTE: I don't have any unit tests created yet. Essentially I would load Console using GroovyStarter, as I have tested separately.

- All: pass system properties to new CompilerConfiguration instances
- Console: use default parameters to reduce constructor variants
@daniellansun daniellansun merged commit 93bebbe into apache:master May 31, 2019
@daniellansun
Copy link
Copy Markdown
Contributor

Merged. Thanks!

@eric-milles
Copy link
Copy Markdown
Member Author

Could I get this merged into 2_5_X and 2_4_X? Or do I need to create separate requests for each?

@daniellansun
Copy link
Copy Markdown
Contributor

daniellansun commented May 31, 2019

If we decide to merge the PR into 2_5_X and 2_4_X, no more PR required. As we all know, 2_5_X and 2_4_X are maintainance branches, so only bug fixes are merged into the two branches usually.
BTW, it's better to create a JIRA ticket to record the non-trivial changes.
@paulk-asert what do you think about.the.suggestion to merge into 2_5_X and 2_4_X?

@eric-milles
Copy link
Copy Markdown
Member Author

I understand about branches and tickets. I submitted this request to see if my idea would be acceptable or needed a rethink. I didn't get much direction from email conversation, but had a workable solution in hand.

As I linked, I've been working a ticket out of another project. It will be very difficult for me to proceed unless I have uniform support in 2.4, 2.5 and 3.0.

@eric-milles eric-milles deleted the starter-support branch June 1, 2019 14:07
@paulk-asert
Copy link
Copy Markdown
Contributor

I haven't had time to review original PR as yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants