Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2244

Write-only JavaBeans properties cannot be set via the '=' operator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1-rc-1
    • 1.6-rc-2
    • bytecode
    • None

    Description

      This code works well:

      def frame = new JFrame()
      frame.setLocationRelativeTo(null)

      But this one throws exception:

      def frame = new JFrame()
      frame.locationRelativeTo = null

      But it is possible to use locationRelativeTo in SwingBuilder, like if
      it is existing property.

      Example:

      def swing = new SwingBuilder()

      def frame = swing.frame(
      title: "Cool Groovy Frame",
      defaultCloseOperation: JFrame.EXIT_ON_CLOSE,
      preferredSize: [400, 400],
      size: [400, 400],
      locationRelativeTo: null,
      )

      { .... }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              enterit Sergey Bondarenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: