Skip to content

Commit

Permalink
Merge pull request #1309 from ayeshLK/master
Browse files Browse the repository at this point in the history
[Revert] Fix issues with Ballerina lang dead-code-elimination
  • Loading branch information
ayeshLK authored Nov 19, 2024
2 parents 748274c + d86b3ea commit f2a4439
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ path = "../native/build/libs/io-native-1.7.0-SNAPSHOT.jar"
version = "1.7.0"


[[platform.java17.dependency]]
[[platform.java21.dependency]]
path = "../test-utils/build/libs/io-test-utils-1.7.0-SNAPSHOT.jar"
scope = "testOnly"
version = "1.7.0-SNAPSHOT"
4 changes: 0 additions & 4 deletions ballerina/io_error.bal
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,16 @@
// specific language governing permissions and limitations
// under the License.

import ballerina/jballerina.java;

# Represents IO module related errors.
public type Error distinct error;

# This will return when connection timed out happen when try to connect to a remote host.
public type ConnectionTimedOutError distinct Error;

# Represents generic IO error. The detail record contains the information related to the error.
@java:ExternalDependency
public type GenericError distinct Error;

# This will get returned due to file permission issues.
@java:ExternalDependency
public type AccessDeniedError distinct Error;

# This will get returned if the file is not available in the given file path.
Expand Down
1 change: 0 additions & 1 deletion ballerina/types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import ballerina/jballerina.java;

# The iterator for the stream returned in `readFileCsvAsStream` function.
@java:ExternalDependency
public class CsvIterator {
private boolean isClosed = false;
public isolated function next() returns record {|anydata value;|}|error? {
Expand Down

0 comments on commit f2a4439

Please sign in to comment.