开发者

Sun javac doesn't compile generated sources, while OpenJDK one does?

开发者 https://www.devze.com 2023-03-07 07:19 出处:网络
I am using JPA entities, and hibernate-jpamodelgen to generate sources for classes like EntityName_.java.

I am using JPA entities, and hibernate-jpamodelgen to generate sources for classes like EntityName_.java.

Strange thing is, when I run javac from Sun JDK (1.6.0_24) sources for EntityName_ are created, but not compiled.

When I run OpenJDK one (1.6.0_22), it is generated and al开发者_如何转开发so compiled. I can find EntityName_.class files in output directory.

Why the difference? And can I somehow force Sun javac to not only generate source, but also compile all the generated files?

0

精彩评论

暂无评论...
验证码 换一张
取 消