-
Bug
-
Resolution: Fixed
-
P2
-
8
-
b113
-
Verified
Annotation processing api returns both default and static modifiers for static interface methods when used with class file.
Mini testcase to reproduce this behavior are attached.
>C:\Java\8b106\windows-i586\bin\javac.exe -classpath C:\work\Oracle\Proc\out\production\Proc -processor jck.proc.Proc jck.proc.i2
Top: i2 [abstract, default]
Enclosing: defaultMethod [public, default]
Enclosing: staticMethod [public, default, static]
Enclosing: abstractMethod [public, abstract]
When used with sources everything is fine:
>C:\Java\8b106\windows-i586\bin\javac.exe -classpath C:\work\Oracle\Proc\out\production\Proc -processor jck.proc.Proc C:\work\Oracle\Proc\src\jck\proc\Test.java
Top: i2 [abstract, default]
Enclosing: defaultMethod [public, default]
Enclosing: staticMethod [public, static]
Enclosing: abstractMethod [public, abstract]
Sources attached.
Mini testcase to reproduce this behavior are attached.
>C:\Java\8b106\windows-i586\bin\javac.exe -classpath C:\work\Oracle\Proc\out\production\Proc -processor jck.proc.Proc jck.proc.i2
Top: i2 [abstract, default]
Enclosing: defaultMethod [public, default]
Enclosing: staticMethod [public, default, static]
Enclosing: abstractMethod [public, abstract]
When used with sources everything is fine:
>C:\Java\8b106\windows-i586\bin\javac.exe -classpath C:\work\Oracle\Proc\out\production\Proc -processor jck.proc.Proc C:\work\Oracle\Proc\src\jck\proc\Test.java
Top: i2 [abstract, default]
Enclosing: defaultMethod [public, default]
Enclosing: staticMethod [public, static]
Enclosing: abstractMethod [public, abstract]
Sources attached.
- relates to
-
JDK-8026133 Diagnostic examples for diagnostics from ClassReader are awkward
- Open