Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6349

Recent builds of the module responsible for java source parsing break BC to JDK 8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 12.5, 12.6
    • 13
    • None

    Description

      There are 6 linked Issues, that all follow a common pattern, pointing to a common cause:

      • They are accompanied by an java.lang.NoSuchMethodError: java.nio.CharBuffer.flip()Ljava/nio/CharBuffer;
      • The users indicate, they are running NB 12.5+ with JDK8
      • The errors occur during parsing.

      Sure enough, JDK 8 hasn't java.nio.CharBuffer.flip()Ljava/nio/CharBuffer,

      it has only java.nio.CharBuffer.flip()Ljava/nio/Buffer, which it inherits from Buffer.

      Which means: the Module in question has obviously been compiled against a library more recent then JDK8, at least JDK9, which has this method.

       

      Consequences:

      This and the 6 linked issues will automatically be fixed with the rollout of NB 13, which will require JDK 11 as prerequisite anyway.

      In the mean time, users may work around the problem, by immediately switching to JDK 9+ when executing Netbeans. Note that they should still be able to develop and build for JDKs 8 an prior.  

      Attachments

        Issue Links

          Activity

            People

              jtulach Jaroslav Tulach
              taps Thomas Schapitz
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: