Skip to content

Commit

Permalink
Merge pull request #495 from ballerina-platform/fix-dce-errors
Browse files Browse the repository at this point in the history
Fix issues with Dead Code Elimination feature
  • Loading branch information
TharmiganK authored Nov 6, 2024
2 parents cabfeb6 + 0967806 commit 1bb5302
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 9 deletions.
8 changes: 4 additions & 4 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[package]
org = "ballerina"
name = "time"
version = "2.5.0"
version = "2.6.0"
authors = ["Ballerina"]
keywords = ["time", "utc", "epoch", "civil"]
repository = "https://github.com/ballerina-platform/module-ballerina-time"
icon = "icon.png"
license = ["Apache-2.0"]
distribution = "2201.8.0"
distribution = "2201.11.0"

[platform.java17]
graalvmCompatible = true

[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "time-native"
version = "2.5.0"
path = "../native/build/libs/time-native-2.5.0.jar"
version = "2.6.0"
path = "../native/build/libs/time-native-2.6.0-SNAPSHOT.jar"
31 changes: 29 additions & 2 deletions ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.8.0"
distribution-version = "2201.11.0-20241101-105200-f94714be"

[[package]]
org = "ballerina"
Expand All @@ -15,6 +15,26 @@ modules = [
{org = "ballerina", packageName = "jballerina.java", moduleName = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "lang.__internal"
version = "0.0.0"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.object"}
]

[[package]]
org = "ballerina"
name = "lang.array"
version = "0.0.0"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.__internal"}
]

[[package]]
org = "ballerina"
name = "lang.error"
Expand All @@ -24,13 +44,20 @@ dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "lang.object"
version = "0.0.0"
scope = "testOnly"

[[package]]
org = "ballerina"
name = "test"
version = "0.0.0"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.array"},
{org = "ballerina", name = "lang.error"}
]
modules = [
Expand All @@ -40,7 +67,7 @@ modules = [
[[package]]
org = "ballerina"
name = "time"
version = "2.5.0"
version = "2.6.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "test"}
Expand Down
1 change: 1 addition & 0 deletions ballerina/time_types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public type ZoneOffset readonly & record {|
decimal seconds?;
|};

@java:ExternalDependency
type ReadWriteZoneOffset record {|
int hours;
int minutes = 0;
Expand Down
2 changes: 1 addition & 1 deletion build-config/resources/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords = ["time", "utc", "epoch", "civil"]
repository = "https://github.com/ballerina-platform/module-ballerina-time"
icon = "icon.png"
license = ["Apache-2.0"]
distribution = "2201.8.0"
distribution = "2201.11.0"

[platform.java17]
graalvmCompatible = true
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org.gradle.caching=true
group=io.ballerina.stdlib
version=2.5.1-SNAPSHOT
ballerinaLangVersion=2201.8.0
version=2.6.0-SNAPSHOT
ballerinaLangVersion=2201.11.0-20241101-105200-f94714be
puppycrawlCheckstyleVersion=10.12.0
ballerinaGradlePluginVersion=2.0.1

0 comments on commit 1bb5302

Please sign in to comment.