When creating the class "Bar" like in the example below, IDEA does not insert the required import-statement when "Bar" is created in a different package. (Note: The auto-import functionality may make this hard to spot)
package foo;
public class Foo {
publicstatic void main(String[] args) {
new Bar(); // <alt>-<enter> -> Create Class"Bar" in package"foo.bar" }
}
Description
When creating the class "Bar" like in the example below, IDEA does not insert the required import-statement when "Bar" is created in a different package. (Note: The auto-import functionality may make this hard to spot)
package foo;
public class Foo {
publicstatic void main(String[] args) {
new Bar(); // <alt>-<enter> -> Create Class"Bar" in package"foo.bar" }
}