Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33155

Uncaught exception in compiler, when JRE 1.7 is used

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Apache Flex 4.8 (parity release)
    • Fix Version/s: Apache Flex 4.9.0
    • Component/s: Compiler API
    • Labels:
    • Environment:
      JRE version 1.7.0_05 , FlashBuilder 4.6 , Apache Flex 4.8(parity release)

      Description

      Steps to Reproduce:
      1. Download the Apache SDK using AIR tool (available at http://people.apache.org/~bigosmallm/installapacheflex/ ) which also packages the SDK to use with Flash builder.
      2. Download JRE 1.7
      3. Install Flash Builder 4.6
      4. Go to the installed FB location and delete the JRE folder already present in the FB installed location
      5. Copy the JRE 1.7 folder into the installed location. (jre folder should be renamed from jre7 to jre)
      FB will now use JRE 1.7 instead of using the bundled 1.6
      6. Configure FB to use Apache SDK which was downloaded in step 1.
      7. Create a Flex project using Apache SDK
      8. Now create a new AS class inside the new project

      Actual result: Internal build error in problems view. The error log says that there was an uncaught exception in the compiler.

      Expected result: There should be no such errors

      Workaround: Add a line "-Djava.util.Arrays.useLegacyMergeSort=true" in the FlashBuilder.ini

      Note: This issue is specific to Apache SDK. It is working fine with the released version of Flex SDK 4.6

      1. FLEX-33155.patch
        2 kB
        silight
      2. UncaughtException_Compiler.log
        7 kB
        Sudhir

        Activity

        Hide
        silight silight added a comment -

        patch file

        Show
        silight silight added a comment - patch file
        Hide
        cframpton Carol Frampton added a comment -

        http://www.oracle.com/technetwork/java/javase/compatibility-417013.html#source

        Area: API: Utilities
        Synopsis: Updated sort behavior for Arrays and Collections may throw an IllegalArgumentException
        Description: The sorting algorithm used by java.util.Arrays.sort and (indirectly) by java.util.Collections.sort has been replaced. The new sort implementation may throw an IllegalArgumentException if it detects a Comparable that violates the Comparable contract. The previous implementation silently ignored such a situation.
        If the previous behavior is desired, you can use the new system property, java.util.Arrays.useLegacyMergeSort, to restore previous mergesort behavior.
        Nature of Incompatibility: behavioral
        RFE: 6804124

        Show
        cframpton Carol Frampton added a comment - http://www.oracle.com/technetwork/java/javase/compatibility-417013.html#source Area: API: Utilities Synopsis: Updated sort behavior for Arrays and Collections may throw an IllegalArgumentException Description: The sorting algorithm used by java.util.Arrays.sort and (indirectly) by java.util.Collections.sort has been replaced. The new sort implementation may throw an IllegalArgumentException if it detects a Comparable that violates the Comparable contract. The previous implementation silently ignored such a situation. If the previous behavior is desired, you can use the new system property, java.util.Arrays.useLegacyMergeSort, to restore previous mergesort behavior. Nature of Incompatibility: behavioral RFE: 6804124
        Hide
        tchiverton tom chiverton added a comment -

        On Windows v1.7 is supported. http://www.adobe.com/products/flash-builder/tech-specs.html says
        "Java™ Virtual Machine (32 bit): Oracle® JRE 1.6 or 1.7"

        Show
        tchiverton tom chiverton added a comment - On Windows v1.7 is supported. http://www.adobe.com/products/flash-builder/tech-specs.html says "Java™ Virtual Machine (32 bit): Oracle® JRE 1.6 or 1.7"
        Hide
        cframpton Carol Frampton added a comment -

        FB4.7 on OSX does not support Java 1.7.

        Show
        cframpton Carol Frampton added a comment - FB4.7 on OSX does not support Java 1.7.
        Hide
        tchiverton tom chiverton added a comment -

        Happens to me in FB 4.7

        Show
        tchiverton tom chiverton added a comment - Happens to me in FB 4.7
        Hide
        quetwo Nick Kwiatkowski added a comment -

        I think this might be an issue with FB 4.6, rather than Java 1.7. FB 4.6 doesn't officially support Java 1.7, nor does it officially support Flex > 4.6.

        I'm not able to reproduce in FB 4.7 or any other IDEs...

        Show
        quetwo Nick Kwiatkowski added a comment - I think this might be an issue with FB 4.6, rather than Java 1.7. FB 4.6 doesn't officially support Java 1.7, nor does it officially support Flex > 4.6. I'm not able to reproduce in FB 4.7 or any other IDEs...
        Hide
        tchiverton tom chiverton added a comment -

        Thanks for reopening. It doesn't need code attached to reproduce; see the steps already given ?
        As a quicker alternative, you can start Eclipse with a different JVM by adding to the start of eclipse.ini:

        -vm
        c:\Program Files\Java\jdk1.6.0_38\bin\javaw.exe

        etc. - note it must be on two lines.

        Show
        tchiverton tom chiverton added a comment - Thanks for reopening. It doesn't need code attached to reproduce; see the steps already given ? As a quicker alternative, you can start Eclipse with a different JVM by adding to the start of eclipse.ini: -vm c:\Program Files\Java\jdk1.6.0_38\bin\javaw.exe etc. - note it must be on two lines.
        Hide
        cframpton Carol Frampton added a comment -

        If you would like someone to look at this please include an example program which demonstrates the problem.

        Show
        cframpton Carol Frampton added a comment - If you would like someone to look at this please include an example program which demonstrates the problem.
        Hide
        tchiverton tom chiverton added a comment -

        This shouldn't have been closed should it ? The exception still occurs when using 1.7 unless you work around it. As v1.7 is (now) supported, that's an argument for keeping it open not closing it, no ?

        Show
        tchiverton tom chiverton added a comment - This shouldn't have been closed should it ? The exception still occurs when using 1.7 unless you work around it. As v1.7 is (now) supported, that's an argument for keeping it open not closing it, no ?
        Hide
        cframpton Carol Frampton added a comment -

        Apache Flex 4.9 supports Java 1.7.
        http://www.apache.org/dist/flex/4.9.0/README

        Show
        cframpton Carol Frampton added a comment - Apache Flex 4.9 supports Java 1.7. http://www.apache.org/dist/flex/4.9.0/README
        Hide
        tchiverton tom chiverton added a comment - - edited

        Java 1.6 is end of life in < two weeks. Any progress ?

        Show
        tchiverton tom chiverton added a comment - - edited Java 1.6 is end of life in < two weeks. Any progress ?
        Hide
        cframpton Carol Frampton added a comment -

        Java 1.7 is not yet supported by Apache Flex although we hope to support it in the near future.

        From the README

        Java SDK 1.5 (0_13 or greater) JAVA_HOME
        or Java SDK 1.6 (*1)
        – Java SDK 1.7 is not supported

        Show
        cframpton Carol Frampton added a comment - Java 1.7 is not yet supported by Apache Flex although we hope to support it in the near future. From the README Java SDK 1.5 (0_13 or greater) JAVA_HOME or Java SDK 1.6 (*1) – Java SDK 1.7 is not supported
        Hide
        sudhirm Sudhir added a comment -

        Attaching the error log

        Show
        sudhirm Sudhir added a comment - Attaching the error log

          People

          • Assignee:
            cframpton Carol Frampton
            Reporter:
            sudhirm Sudhir
          • Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:

              Development