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

com.sun.tools.javac.api.ClientCodeWrapper$WrappedJavaFileManager cannot be cast

    XMLWordPrintable

Details

    • 7
    • b25
    • x86
    • windows_7
    • Verified

    Backports

      Description

        FULL PRODUCT VERSION :


        A DESCRIPTION OF THE PROBLEM :
        An exception has occurred in the compiler (1.7.0_02). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
        java.lang.ClassCastException: com.sun.tools.javac.api.ClientCodeWrapper$WrappedJavaFileManager cannot be cast to com.sun.tools.javac.file.JavacFileManager
        at com.sun.tools.javac.main.Main.compile(Main.java:413)
        at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)
        at com.sun.tools.javah.JavahTask.run(JavahTask.java:513)
        at com.sun.tools.javah.JavahTask.run(JavahTask.java:335)
        at com.sun.tools.javah.Main.main(Main.java:46)


        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Just starting off with JNI. Occurs when javah is run as an external tool in eclipse.


        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        package com.redwoodsys.jvolcano.proto;

        public class EngineFpgaJni {
        public native void set8(int offset, int value);
        public native int get8(int offset);
        public native void set16(int offset, int value);
        public native int get16(int offset);
        public native void set32(int offset, int value);
        public native int get32(int offset);
        }

        ---------- END SOURCE ----------

        Attachments

          Issue Links

            Activity

              People

                jjh James Holmlund (Inactive)
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: