Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8006525

Give StaticClass objects their own linker

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • None
    • core-libs
    • None
    • b82
    • generic
    • generic

      NashornPrimitiveLinker is doing double duty right now: both providing linking and type conversion for primitive types, as well as extending the "dyn:new" operator semantics on a StaticClass (so we can use the "new X() { ... }" syntax). I want to pull it apart in two, with all handling of JS primitive types in NashornPrimitiveLinker, and only handling of StaticClass operational semantics extension in separate NashornStaticClassLinker. Having things organized like that might be a useful architectural direction for the future too if we want to extend some of the semantics of other operations on types from Dynalink too (i.e. having a linker for DynamicMethod that provides "dyn:getMethod:bind", "dyn:getMethod:call", and "dyn:getMethod:apply" etc.)

            attila Attila Szegedi
            attila Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: