Comments (4)
The slash in the resource method is causing the issue. If we remove that slash, it works fine. The following snippets show various instances of generated code.
-
The client is in main.bal
-
The client is in test.bal
@gabilang can you have a look on it?
from ballerina-lang.
The problem is only reproducible when the client definition is outside of the respective test file. Once the definition is placed along with the test function in the same file, the error is not generated.
from ballerina-lang.
The problem is only reproducible when the client definition is outside of the respective test file. Once the definition is placed along with the test function in the same file, the error is not generated.
Yes, the issue arises when we have the generated code for test. There seems to be an inconsistency in the generated byte code for the tests and main, where we call a field to get the default value for this resource method argument.
from ballerina-lang.
@nipunayf Shall we check the generated jar and verify whether this field is there?
from ballerina-lang.
Related Issues (20)
- [Bug]: Dependently-Typed Functions Return Invalid Types when Assigned to an Error HOT 1
- [New Feature]: Provide a user interface to execute Ballerina lifecycle commands
- [New Feature]: Provide a `try-it` code lens for connector actions
- [Improvement]: Improve the code coverage of ballerina lang cli module
- [Bug]: Compiler crash when using `xml:map` with an xml union type HOT 1
- [Bug]: Ballerina program crashes with a CCE when `self` is used as a variable HOT 1
- [Improvement]: Reduce the search space for `listInhabited` with large number of negative atoms
- [Bug]: Worker send hangs when the worker returns early inside if-else blocks HOT 1
- [Bug]: `bal build` showing contradictory behaviours when building with update 9 followed by update 8
- Work on PoC
- [Bug]: `gradle clean` not working on windows
- [Improvement]: Remove unused git submodules
- [Bug]: Incompatible types error when defining services with custom listeners
- [Bug]: Incorrect dependency resolution when generating dependencies programmatically via the project API from Ballerina tools HOT 3
- [Bug]: The order of type definitions influences mapping subtype relation HOT 6
- [Bug]: Referred type is wrong for regxp:RegExp
- [Task]: POC on applying Java virtual threads for Ballerina lock implementation
- [Bug]: Invalid ambiguous type for union of same xml subtype sequence.
- [Task]: Refactor `unescapeJava()` usage in Ballerina Runtime
- [Bug]: Got error said "icon file not found" although the icon is inside the bala file.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ballerina-lang.