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

For some sources compiler compiles for ever

    XMLWordPrintable

Details

    • b16
    • Verified

    Backports

      Description

        The attached source file takes the javac 2s to compile on JDK 7u45. It takes 80s on JDK 8. The file is file from real life - a user of the IDE was trying to edit his source code.

        Although the compiler finishes I consider this a crash since it effectively takes so much time that it is like not finishing at all. Moreover as we use the compiler inside NetBeans IDE the compiler in such case eats all memory and our whole IDE dies because of that.

        There is no workaround on our side - we cannot catch some exception or something. Also for the command line use of the javac - there might be cases (quite common in fact) that the compiler will not finish.

        Hence marking the problem as P2.

        Here is the simple repro test on my machine (using the attached file):

        ~/Downloads$date ; /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/javac inventorymgr/AddItem.java ; date
        Thu Jan 16 09:48:26 CET 2014
        Thu Jan 16 09:48:28 CET 2014
        ~/Downloads$date ; /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/javac inventorymgr/AddItem.java ; date
        Thu Jan 16 09:49:09 CET 2014
        Thu Jan 16 09:50:29 CET 2014

        Attachments

          Issue Links

            There are no Sub-Tasks for this issue.

            Activity

              People

                jlahoda Jan Lahoda
                dstrupl David Štrupl (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: