Does IntelliJ treat _ in package names correctly?

已回答

I have a legacy java project that use an old axis implementation that creates some java code with the following namespace:
import org.opcfoundation.webservices.XMLDA._1_0.*;

IntelliJ is not very happy about this construct.
for example one of the classes Service is marked as not found and the import statement is marked as not used.
If i manually import:

import org.opcfoundation.webservices.XMLDA._1_0.Service;
Then it works.

The automatic import organizer can't handle it either. The project compiles fine from the command line.

I suspect your product doesn't handle _ in package names?

0

Hello, please specify what IDEA version do you use?

IDEA 2018.3 seems to be working correct with package name org.opcfoundation.webservices.XMLDA._1_0

If possible please provide little sample project where the issue is reproduced. Thanks

0

请先登录再写评论。