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

JavaFileManager().getClassLoader(CLASS_PATH) throws UnsupportedOperationException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 6
    • 6
    • tools
    • None
    • generic
    • generic

      I have a customer who tried running the following:

          @Override public void attachTo( final CommandEnvironment env ) {
      super.attachTo(env);
      classLoader = env.getJavaFileManager().getClassLoader( CLASS_PATH );
          }

      Jackpot currently returns an unmodified DefaultFileManager instance, which throws the following exception:

      Caused by: java.lang.UnsupportedOperationException
      at com.sun.tools.javac.util.ListBuffer.add(ListBuffer.java:205)
      at
      com.sun.tools.javac.util.DefaultFileManager.getClassLoader(DefaultFileManager.java:664)
      at sixexperiment.PEC.attachTo(PEC.java:20)

      This is due to ListBuffer.add() not being implemented.

            ahe Peter Ahe
            tballsunw Tom Ball (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: