[MGNLGROOVY-148] Creating a new "groovy class" always fails with compliation error Created: 02/Aug/16  Updated: 03/Nov/22  Resolved: 08/Mar/21

Status: Closed
Project: Magnolia Groovy Module
Component/s: None
Affects Version/s: 2.4.5
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Richard Gange Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File error.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Whenever you want to create a new groovy class in Magnolia you have to use a workaround procedure which requires that it be declared as a script first.

Steps

  1. Create a package info.magnolia.groovy.examples
  2. Inside the examples folder add a new script.
  3. Declare a new class
    package info.magnolia.groovy.examples;
    public class MyGroovyClass { }
    
  4. Click save, see the error.


 Comments   
Comment by Richard Gange [ 02/Aug/16 ]

To workaround, click the "Is a script?" checkbox, save. This allows the node to be created for the script. Edit the script and uncheck the box.

Generated at Mon Feb 12 05:56:03 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.