Git Product home page Git Product logo

Comments (10)

mworzala avatar mworzala commented on May 20, 2024

Hmm some more context, on a simpler project it does not crash but also does not apply the reloaded changes and prints

HOTSWAP AGENT: 22:34:47.539 ERROR (org.hotswap.agent.plugin.jdk.JdkPlugin) - classReload() exception No such field java.beans.Introspector.declaredMethodCache on null.

in the terminal. This error popped up on the original project as well.

from jetbrainsruntime.

skybber avatar skybber commented on May 20, 2024

You can ignore the HA error message. HA is not fully ported to java17 now. The crash seems more serious, is it reproducible?

from jetbrainsruntime.

mworzala avatar mworzala commented on May 20, 2024

It’s consistent in one project, doesn’t happen in another. Although in the latter case nothing is reloaded as far as I can tell.

from jetbrainsruntime.

skybber avatar skybber commented on May 20, 2024

Is it possible to describe steps how to reproduce it on your https://github.com/Minestom/Minestom project?

from jetbrainsruntime.

mworzala avatar mworzala commented on May 20, 2024
  1. git clone https://github.com/Minestom/Minestom
  2. git checkout 529_extension_improvement
  3. (the rest in IntelliJ for convenience)
  4. Project/gradle jdk to JBR
  5. Debug src/test/java/demo/Main with -XX:HotswapAgent=fatjar
  6. Make an edit at src/main/java/net/minestom/server/instance/InstanceContainer#L465 (for example a system print)
  7. Recompile/reload InstanceContainer.java
  8. Crash

This is consistent on my machine. The crash does not seem consistent at other locations. That one always crashes though.

from jetbrainsruntime.

skybber avatar skybber commented on May 20, 2024

@mworzala thanks for great report. I've fix now for it, it should be included in next release.

from jetbrainsruntime.

skybber avatar skybber commented on May 20, 2024

@mworzala before patch will be available, you can use -XX:-UseEmptySlotsInSupers as a workaround for your issue.

from jetbrainsruntime.

mworzala avatar mworzala commented on May 20, 2024

Looks like that's working, thanks for the quick responses and patch!

I will close the issue for now, but if you could make a comment when the next release happens that would be great.

from jetbrainsruntime.

avu avatar avu commented on May 20, 2024

@skybber why did you reopened this issue? Is it not fixed yet?

from jetbrainsruntime.

skybber avatar skybber commented on May 20, 2024

already fixed in java17.

from jetbrainsruntime.

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.