You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cg...@apache.org on 2024/10/03 12:21:15 UTC

(plc4x) branch fix/simdrv updated: Small fix to simdrv.

This is an automated email from the ASF dual-hosted git repository.

cgarcia pushed a commit to branch fix/simdrv
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/fix/simdrv by this push:
     new 4eb0d5c5b1 Small fix to simdrv.
4eb0d5c5b1 is described below

commit 4eb0d5c5b15d087a1aa3a06d040ccc50157aab15
Author: César García <ce...@ceos.com.ve>
AuthorDate: Thu Oct 3 08:20:39 2024 -0400

    Small fix to simdrv.
---
 plc4j/drivers/modbus/pom.xml                                            | 1 +
 plc4j/drivers/s7/pom.xml                                                | 2 +-
 .../org/apache/plc4x/java/simulated/connection/SimulatedConnection.java | 2 +-
 plc4j/spi/pom.xml                                                       | 1 -
 .../org/apache/plc4x/java/spi/connection/AbstractPlcConnection.java     | 2 +-
 5 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/plc4j/drivers/modbus/pom.xml b/plc4j/drivers/modbus/pom.xml
index 05b96348f5..4703091c7c 100644
--- a/plc4j/drivers/modbus/pom.xml
+++ b/plc4j/drivers/modbus/pom.xml
@@ -80,6 +80,7 @@
             <Import-Package>
               *
             </Import-Package>
+	     <SPI-Consumer>*</SPI-Consumer>
           </instructions>
         </configuration>
       </plugin>
diff --git a/plc4j/drivers/s7/pom.xml b/plc4j/drivers/s7/pom.xml
index c541e1764d..52e51a1907 100644
--- a/plc4j/drivers/s7/pom.xml
+++ b/plc4j/drivers/s7/pom.xml
@@ -81,7 +81,7 @@
             <Import-Package>
               *
             </Import-Package>
-            <SPI-consumer>*</SPI-consumer>            
+            <SPI-Consumer>*</SPI-Consumer>
           </instructions>
         </configuration>
       </plugin>
diff --git a/plc4j/drivers/simulated/src/main/java/org/apache/plc4x/java/simulated/connection/SimulatedConnection.java b/plc4j/drivers/simulated/src/main/java/org/apache/plc4x/java/simulated/connection/SimulatedConnection.java
index a14e41fd9a..f2aa8cea17 100644
--- a/plc4j/drivers/simulated/src/main/java/org/apache/plc4x/java/simulated/connection/SimulatedConnection.java
+++ b/plc4j/drivers/simulated/src/main/java/org/apache/plc4x/java/simulated/connection/SimulatedConnection.java
@@ -67,7 +67,7 @@ public class SimulatedConnection extends AbstractPlcConnection implements PlcRea
     public SimulatedConnection(SimulatedDevice device) {
         super(true, true, true, true, false,
             new DefaultPlcValueHandler(), null, null);
-        this.device = device;
+        this.device = device;        
     }
 
     @Override
diff --git a/plc4j/spi/pom.xml b/plc4j/spi/pom.xml
index f253dbcde7..df835a4c91 100644
--- a/plc4j/spi/pom.xml
+++ b/plc4j/spi/pom.xml
@@ -108,7 +108,6 @@
             </Import-Package>
             <Private-Package>com.github.jinahya.bit.io</Private-Package>
             <Export-package>io.netty.bootstrap,*</Export-package>
-
             <SPI-consumer>*</SPI-consumer>
             <SPI-Provider>*</SPI-Provider>
           </instructions>
diff --git a/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/connection/AbstractPlcConnection.java b/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/connection/AbstractPlcConnection.java
index 6ac2ef2e8b..a3b7a874a4 100644
--- a/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/connection/AbstractPlcConnection.java
+++ b/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/connection/AbstractPlcConnection.java
@@ -235,7 +235,7 @@ public abstract class AbstractPlcConnection implements PlcConnection, PlcConnect
     public Optional<PlcTag> parseTagAddress(String tagAddress) {
         PlcTag plcTag;
         try {
-            plcTag = tagHandler.parseTag(tagAddress);
+            plcTag = getPlcTagHandler().parseTag(tagAddress);
         } catch (Exception e) {
             throw new PlcRuntimeException("Error parsing tag address: " + tagAddress, e);
         }