Details

    • Type: Bug Bug
    • Status: In Progress
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:
      java version "1.6.0_11"
      Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
      Java HotSpot(TM) Server VM (build 11.0-b16, mixed mode)

      Description

      Not sure if this is a new feature of newer JVMs: PropertyEditors are localised. This particularly means that the string "true" won't be translated to true, if the JVM's current default language isn't english. This probably also affect other types.

      This is not acceptable and very dangerous. We need to introduce a new string to value conversion mechanism and replace all uses of PropertyEditor. This affects the smart translator and the lightweight instantiation syntax.

        Activity

        Hide
        Raffael Herzog added a comment -

        This is now fixed in the trunk. Converting strings to objedts is now done using Module#stringToObject() and Registry#stringToObject() (SmartTranslator now uses this mechanism, too), more type handlers can be added by contributing to the configuration point 'gaderian.TypeHandlers'.

        Still to do:

        • TestSmartTranslator actually tests the new TypeConverter, clean that up. SmartTranslator is now trivial, does it still need tests at all, as it just forwards to Module#stringToObject()?
        • Update JavaDocs on new/changed methods and classes.
        • Update HiveDocs.
        Show
        Raffael Herzog added a comment - This is now fixed in the trunk. Converting strings to objedts is now done using Module#stringToObject() and Registry#stringToObject() (SmartTranslator now uses this mechanism, too), more type handlers can be added by contributing to the configuration point 'gaderian.TypeHandlers'. Still to do: TestSmartTranslator actually tests the new TypeConverter, clean that up. SmartTranslator is now trivial, does it still need tests at all, as it just forwards to Module#stringToObject()? Update JavaDocs on new/changed methods and classes. Update HiveDocs.

          People

          • Assignee:
            Raffael Herzog
            Reporter:
            Raffael Herzog
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development