Unable to create IntelliJ IDEA package

I am trying to create a package for my project in IntelliJ IDEA. I call "com.mydomain.switch" the switch, which is the name of the project, but as soon as I type "switch" it shows an error.

The only thing I can think of is that "switch" is a Java keyword, is that so? and if so, what can I do about it?

+4
source share
2 answers

When creating a package named switch, IntelliJ IDEA displays the following error message:

Invalid package name, it would be impossible to create a class inside

, . : . .

, : http://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.9

+1

, , packagename.

Intellij , .

+1

Source: https://habr.com/ru/post/1536221/


All Articles