java - Cannot rename package in Intellij Idea -


i have not troubles renaming packages in idea, but... have "example" package , want rename "enum", idea not allow me that. when create new package "enum", warns me, not able create java classes within. problem???

you cannot rename package enum, because reserved keyword in java.

at oracle tutorial page "naming package" says

in cases, internet domain name may not valid package name. can occur if domain name contains hyphen or other special character, if package name begins digit or other character illegal use beginning of java name, or if package name contains reserved java keyword, such "int".


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -