What happened to JAXB's NamespacePrefixMapper in JDK6u18

后端 未结 7 967
粉色の甜心
粉色の甜心 2020-12-08 19:44

I\'ve been using com.sun.xml.bind.marshaller.NamespacePrefixMapper in my project, and i had no problem with it in JDK 6u17. Now I just updated to 6u18, and I sa

7条回答
  •  一个人的身影
    2020-12-08 20:18

    I ran into this recently when porting some older code into a new project. The old project compiled just fine using ant, however the new one failed with the error you mention above.

    After some digging, I found that the old build.xml file uses a javac compiler option to bypass the restriction above:

    
        
    
    

    After finding it, I searched and found this other stackoverflow question: Using internal sun classes with javac

提交回复
热议问题