AndrewSkuratov opened a new issue, #8320: URL: https://github.com/apache/netbeans/issues/8320
### Apache NetBeans version Apache NetBeans 25 ### What happened I wrote this code: `package Lesson24; public class Test5_2 { } interface I1{ default void abc(){System.out.println("eto metod abc");} static void def(){System.out.println("Static method");} } interface I2 extends I1{ default void abc(){System.out.println("abc metod ot I2 интерфейса");} } class R implements I1,I2{ public static void main(String [] args) { I1.def(); R r1 = new R(); r1.abc(); } } //class Z2 implements I1{ // public void abc(){System.out.println("eto metod abc");} // public static void main(String [] args) { // Z2 z = new Z2(); // z.abc(); // I1.def(); // к статическим методам интерфейса можно обратиться только через название самого интерфейса. // z.ghi(); // } // public void ghi(){System.out.println("eto metod ghi");} //} ` --------------------------------------- after that i try to comment this lines: `interface I2 extends I1{ default void abc(){System.out.println("abc metod ot I2 интерфейса");} }` the code was this: `package Lesson24; public class Test5_2 { } interface I1{ default void abc(){System.out.println("eto metod abc");} static void def(){System.out.println("Static method");} } //interface I2 extends I1{ // default void abc(){System.out.println("abc metod ot I2 интерфейса");} //} class R implements I1,I2{ public static void main(String [] args) { I1.def(); R r1 = new R(); r1.abc(); } } //class Z2 implements I1{ // public void abc(){System.out.println("eto metod abc");} // public static void main(String [] args) { // Z2 z = new Z2(); // z.abc(); // I1.def(); // к статическим методам интерфейса можно обратиться только через название самого интерфейса. // z.ghi(); // } // public void ghi(){System.out.println("eto metod ghi");} //} ` ----------------------- and then I saw the same output like this important line "abc metod ot I2 интерфейса" which after rebuilding and cleaning project in NetBeans was still appear: run: Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -Dconsole.encoding=UTF-8 Static method abc metod ot I2 интерфейса BUILD SUCCESSFUL (total time: 0 seconds) ### Language / Project Type / NetBeans Component Java ### How to reproduce Please try to comment this lines: //interface I2 extends I1{ // default void abc(){System.out.println("abc metod ot I2 интерфейса");} //} and then compile and run, than if bug still appear, try to delete this code lines and try to clean and rebuild and run. ### Did this work correctly in an earlier version? No / Don't know ### Operating System Windows 11 Pro, 24H2 ### JDK 23 ### Apache NetBeans packaging Apache NetBeans provided installer ### Anything else Today I try to continue learn the lesson, and... this problem was occurred. I think, that after first compiling the program code, some compiled files was created, and then, they didn't want to be replaced with new compiled code, or something like that... ### Are you willing to submit a pull request? Yes -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists