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

JavaFileManager().getClassLoader(CLASS_PATH) throws UnsupportedOperationException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: