You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scala.swing.Action$$Trigger
scala.swing.Action$$Trigger$$
scala.swing.Action$$Trigger$$WrapperException in thread "main" java.lang.InternalError:Malformedclassname
at java.lang.Class.getSimpleName(Class.java:1133)
at test.ClassNameProblem$$.main(ClassNameProblem.scala:9)
at test.ClassNameProblem.main(ClassNameProblem.scala)
The problem for scala.swing.Action.Trigger.Wrapper seems to be, that there is no "$$" as separator between the name of the enclosing class and its simple name. But this is expected by java.lang.Class#getSimpleName, which therefore throws the Exception.
In my understanding, class.getSimpleName should never fail. So this seems to be a bug of the Scala compiler.
You might ask, why on Earth one would call this method? Well, JRuby 1.5.1 does for some reason, if you give it e.g. the peer of a scala.swing.ToggleButton. So this problem makes Scala Swing somewhat unusable with JRuby.
Scala version: 2.8.0 [[br]]
Java version: 1.6.0_20 [[br]]
System: Mac OS
The text was updated successfully, but these errors were encountered:
Code to reproduce:
This leads to the following output (and error):
The problem for
scala.swing.Action.Trigger.Wrapper
seems to be, that there is no "$$" as separator between the name of the enclosing class and its simple name. But this is expected byjava.lang.Class#getSimpleName
, which therefore throws the Exception.In my understanding,
class.getSimpleName
should never fail. So this seems to be a bug of the Scala compiler.You might ask, why on Earth one would call this method? Well, JRuby 1.5.1 does for some reason, if you give it e.g. the peer of a
scala.swing.ToggleButton
. So this problem makes Scala Swing somewhat unusable with JRuby.Scala version: 2.8.0 [[br]]
Java version: 1.6.0_20 [[br]]
System: Mac OS
The text was updated successfully, but these errors were encountered: