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
The following error occurs when attempting to access a value in the scala.swing.Key enumeration:
scala>valx= scala.swing.Key.F
java.lang.AssertionError: assertion failed
at scala.Predef$$.assert(Predef.scala:87)
at scala.Enumeration$$Val.<init>(Enumeration.scala:220)
at scala.Enumeration.Value(Enumeration.scala:160)
at scala.swing.Key$$.<init>(Key.scala:84)
at scala.swing.Key$$.<clinit>(Key.scala)
at .<init>(<console>:4)
at .<clinit>(<console>)
at RequestResult$$.<init>(<console>:3)
at RequestResult$$.<cli...
I believe the problem is that two of the values in the enumeration has the same ordinal:
VK_SEPARATOR is defined in java.awt.event.KeyEvent as:
public static final int VK_SEPARATOR=VK_SEPARATER;
Probably the easiest solution is to just remove the Separater value since it's only included in KeyEvent for backwards compatibility, which is most likely not a concern for the scala.swing API yet.
The text was updated successfully, but these errors were encountered:
@DavidBiesack said:
This still exists in 2.7.7RC2
There is a (I believe) trivial fix for that there (remove the mnemonic for the deprecated VK_SEPARATER)
Without this change in the 2.7 codebase, mnemonics cannot be used at all in 2.7.7.
The following error occurs when attempting to access a value in the scala.swing.Key enumeration:
I believe the problem is that two of the values in the enumeration has the same ordinal:
VK_SEPARATOR is defined in java.awt.event.KeyEvent as:
Probably the easiest solution is to just remove the Separater value since it's only included in KeyEvent for backwards compatibility, which is most likely not a concern for the scala.swing API yet.
The text was updated successfully, but these errors were encountered: