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

Nashorn fails to instantiate Ant API Java classes when used from inside Ant build script

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • core-libs
    • None
    • JDK8 b82 x64 Win 7 NetBeans 7.3 or daily builds

    • b84
    • generic
    • generic

      In NetBeans we discovered that JavaScript engine in JDK8 b82 fails randomly to instantiate Ant API classes. For details see https://netbeans.org/bugzilla/show_bug.cgi?id=228121. The randomness in behavior may possibly relate to JDK-8011697. But this is not a duplicate, it is more likely to suggest that once the randomness is resolved and Nashorn will be called at all times, our problems may become permanent. So the core of our problem is the failures to instantiate Ant API classes, as described in detail in the bugzilla issue referred to above.

      The impact of the bug is serious in NetBeans. Due to it, when NetBeans IDE is run on JDK8 b82, all JavaFX related project types cease to work - more specifically they fail to build. The problem affects specifically JavaFX projects because large part of their build system in NetBeans is written in JavaScript, other such problems in other NetBeans project type are not known now but possibly may show up. There is currently no feasible workaround possible on NetBeans side without degrading considerably the build system capabilities.


            Unassigned Unassigned
            psomol Petr Somol (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: