hg: lambda/lambda/langtools: Enhancement: Add support for static interface methods
Boaz Nahum
boaznahum at gmail.com
Sun Dec 16 11:28:18 PST 2012
Sorry. I just followed the sugestion
" Btw - for those willing to experiment, I noticed that if you try to run
code that calls static interface method you get a verifier error because of
a verifier glitch (the verifier doesn't like an interface method CP entry
on an invokestatic) - so you need to run with -Xverify:none, for now."
On Dec 16, 2012 9:07 PM, "Remi Forax" <forax at univ-mlv.fr> wrote:
> On 12/16/2012 06:52 PM, Boaz Nahum wrote:
> > Hi.
> >
> > I'm building lambda/lambda on daily basis.
> >
> > I'm trying to run example with static method interface, adding
> > -Xverify:none, but still getting
> >
> > Exception in thread "main" java.lang.VerifyError: Illegal static method
> > sayHello in interface I1
> >
> > is this supposed to work ?
>
> It will work when the VM will support it, currently only the compiler
> support was pushed.
>
> >
> > Thanks
> > Boaz
>
> Rémi
>
> >
> >
> >
> >
> > On Mon, Dec 3, 2012 at 6:11 PM, <maurizio.cimadamore at oracle.com> wrote:
> >
> >> Changeset: 67030038d40b
> >> Author: mcimadamore
> >> Date: 2012-12-03 15:32 +0000
> >> URL:
> >> http://hg.openjdk.java.net/lambda/lambda/langtools/rev/67030038d40b
> >>
> >> Enhancement: Add support for static interface methods
> >>
> >> This patch adds support for static interface methods.
> >> Hiding rules are simpler than those for static class methods, as a
> static
> >> interface method cannot be inherithed.
> >>
> >> ! src/share/classes/com/sun/tools/javac/code/Flags.java
> >> ! src/share/classes/com/sun/tools/javac/code/Source.java
> >> ! src/share/classes/com/sun/tools/javac/code/Symbol.java
> >> ! src/share/classes/com/sun/tools/javac/comp/Attr.java
> >> ! src/share/classes/com/sun/tools/javac/comp/Check.java
> >> ! src/share/classes/com/sun/tools/javac/parser/JavacParser.java
> >> ! src/share/classes/com/sun/tools/javac/resources/compiler.properties
> >> + test/tools/javac/defaultMethods/hiding/InterfaceMethodHidingTest.java
> >> ! test/tools/javac/defaultMethods/syntax/TestDefaultMethodsSyntax.java
> >> ! test/tools/javac/diags/examples.not-yet.txt
> >>
> >>
> >>
>
>
>
More information about the lambda-dev
mailing list