Groovy
  1. Groovy
  2. GROOVY-5067

[PATCH] AstBuilderFromSpecificationTest.testFieldExpression sets an incorrect modifier to FieldNode

    Details

    • Type: Test Test
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.9-beta-4, 1.8.4
    • Component/s: ast builder
    • Labels:
      None
    • Environment:
      1.9.0-beta-4-SNAPSHOT
    • Flags:
      Patch

      Description

      The code try to set the modifier to "public static" but

      ACC_PUBLIC & ACC_STATIC

      means NOTHING:

          public void testFieldExpression() {
              // public static String foo = "a value"
              def result = new AstBuilder().buildFromSpec {
                  field {
                      fieldNode "foo", ACC_PUBLIC & ACC_STATIC, String, this.class, {
                          constant "a value"
                      }
                  }
              }
      

        Activity

        Masato Nagai created issue -
        Guillaume Delcroix made changes -
        Field Original Value New Value
        Fix Version/s 1.9-beta-4 [ 17656 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 1.8.4 [ 17852 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12733991 ] Default workflow, editable Closed status [ 12745595 ]
        Mark Thomas made changes -
        Flags Patch [ 10430 ]
        Patch Submitted Yes [ 10763 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12971326 ] Default workflow, editable Closed status [ 12979128 ]

          People

          • Assignee:
            Guillaume Delcroix
            Reporter:
            Masato Nagai
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development