Coder Social home page Coder Social logo

dakusui / osynth Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 1.38 MB

A library to synthesize an object from given interfaces.

Home Page: https://dakusui.github.io/osynth/

License: Apache License 2.0

Java 98.59% Shell 1.41%
dynamic-proxy java library

osynth's People

Contributors

dakusui avatar dependabot[bot] avatar

Watchers

 avatar

osynth's Issues

Use JUnit5

Time to move to JUnit5.
The goal of this ticket is to start using JUnit5 with compatibility mode of it.
Converting existing tests into the modern style will be under another ticket.

Unnecessary warnings are printed during release

[INFO] [WARNING] 
[INFO] [WARNING] Some problems were encountered while building the effective model for com.github.dakusui:floorplan:jar:5.1.0
[INFO] [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing.
[INFO] [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing.
[INFO] [WARNING] 
[INFO] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[INFO] [WARNING] 
[INFO] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[INFO] [WARNING] 

Once a handler object accepts

No handy way is available to override a default method when one is calling another.

interface Example {
  default callee() {
    return 100;
  }
  default caller() {
    return callee();
  }
}
  new ObjectSynthesizer()
  .addInterface(Example.class)
  .handle(methodCall("callee").with((s,a)-> -100))
  .addHandlerObject(new Example() {})
  .synthesize()
  .caller()

This results in 100, instead of -100, surprisingly.
It is because the new Example(){}.caller() calls callee() directly not through the synthesized proxy.

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.