This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Missing hint for interface default method (since Java 8) | ||
---|---|---|---|
Product: | java | Reporter: | Peter Nabbefeld <epdv> |
Component: | Hints | Assignee: | Svata Dedic <sdedic> |
Status: | NEW --- | ||
Severity: | normal | CC: | dtrebbien |
Priority: | P3 | ||
Version: | Dev | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Peter Nabbefeld
2017-08-20 20:31:09 UTC
Hm, probably this bug is related to maven, as I've found some other problems now when trying to compile (source format and compiler set to Java 8): - "PluginConfig.java:[19,8] PluginConfig is not abstract and does not override abstract method getSpringConfigurationDelegate() in ServerPluginConfig" - Due to some tutorials, without the "default" keyword the method should just be static. So it seems, though I've set the project properties to use Java 8, maven doesn't use the correct Java version. Maybe a problem with the Super POM? The description of static interface methods I found was incorrect, so interface methods for Java 8 should have a hint to either add "default" or "static". Hm, the maven-only problem with compiling is no more reproducible, so only the hint should still be fixed. |