GithubHelp home page GithubHelp logo

Comments (4)

leibnitz27 avatar leibnitz27 commented on July 17, 2024

Oh, that's nice.

The synthetic inner class is actually static, it's supposed to have a static marker, but it doesn't, which is entirely valid.

I wonder what compiler generated that.....

from cfr.

nharrand avatar nharrand commented on July 17, 2024

Oh, I incorrectly reported that is was compiled with javac, but it was actually compiled with eclipse jdt. (More precisely with maven plugin plexus-compiler-eclipse version 2.8.4)

from cfr.

leibnitz27 avatar leibnitz27 commented on July 17, 2024

Ah, nice. JDT does all sorts of horrible and weird things (and outputs unsafe code in places).

Still, I really need to compile up my entire test set using JDT - one to add to https://github.com/leibnitz27/cfr_tests/blob/master/pom.xml

from cfr.

leibnitz27 avatar leibnitz27 commented on July 17, 2024

Oh, I forgot - jdk also does this since java 9. (doesn't mark static anonymous inners as static).
But my test to infer this doesn't kick in until java 9, and this is java <6.

Makes sense. The fix as committed is useful to have anyway!

from cfr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.