开发者

How to tell the java compiler to allow public as package name?

开发者 https://www.devze.com 2023-03-22 12:56 出处:网络
In GWT code I use a java sub package called public that contains html/css/etc.. files. I notice that the java compiler output doesn\'t contain this sub package and its content.

In GWT code I use a java sub package called public that contains html/css/etc.. files.

I notice that the java compiler output doesn't contain this sub package and its content.

I want this because of testing purposes. Any idea how to tell the java compiler to include this sub package and its content?开发者_开发百科


You can't... It's a reserved word....

Sorry.

http://www.jwrider.com/riderist/java/javaidrs.htm

EDIT

and

http://download.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html

Thanks @Joachim


Yep, "public" is a reserved word and you can't use it. You can probably use "Public", though. (Not that I recommend it.)

0

精彩评论

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

关注公众号