Scala Programming Language
  1. Scala Programming Language
  2. SI-6784

Import of swing._ leaks implicitConversions and reflectiveCalls into the namespace

    Details

      Description

      import scala.swing._ gives you implicitConversions and reflectiveCalls whether you want them or not. Perhaps the library is unusable without reflectiveCalls--I'm not sure. But isn't implicitConversions at least a mistake? If you don't want conversions, it's annoying; and if you do, it's also annoying because you get a conflict between language.implicitConversions and swing.implicitConversions (if you have both).

        Activity

        Hide
        Jason Zaugg added a comment -

        It looks like it was meant as an implementation detail of the package, rather than part of the outward facing API.
        https://github.com/scala/scala/commit/f15dc74

        Show
        Jason Zaugg added a comment - It looks like it was meant as an implementation detail of the package, rather than part of the outward facing API. https://github.com/scala/scala/commit/f15dc74
        Hide
        Paul Phillips added a comment -

        Oops. I assume they would cause problems even if they were private[swing], because of SI-3160. Which doesn't really explain why I didn't manage that much. It is with a heavy heart that I do this, but honor demands that I hand in my resignation as "fix all the warnings" guy.

        Show
        Paul Phillips added a comment - Oops. I assume they would cause problems even if they were private [swing] , because of SI-3160 . Which doesn't really explain why I didn't manage that much. It is with a heavy heart that I do this, but honor demands that I hand in my resignation as "fix all the warnings" guy.
        Show
        Jason Zaugg added a comment - https://github.com/scala/scala/pull/2465

          People

          • Assignee:
            Jason Zaugg
            Reporter:
            Rex Kerr
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development