Uploaded image for project: 'Solder'
  1. Solder
  2. SOLDER-125

Expressions is not visible in seam-solder-api artifact at compile time

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0.Final
    • Fix Version/s: None
    • Component/s: Core
    • Environment:
    • Steps to Reproduce:
      Hide

      1 - Create a project with mvn archetype:generate -DarchetypeArtifactId=jboss-jsf-weld-servlet-webapp -DarchetypeGroupId=org.jboss.weld.archetypes -DarchetypeVersion=1.0.1.Beta1 -DarchetypeRepository=central -DartifactId=seam-expression-bug -DgroupId=org.seamframework.bug -Dversion=1.0

      2 - Paste this code in src/main/java/org/seamframework/bug/Bugged.java:

      package org.seamframework.bug;

      import org.jboss.seam.solder.el.Expressions;

      public class Bugged

      Unknown macro: { @Inject Expressions expressions; }

      3 - run mvn package

      Show
      1 - Create a project with mvn archetype:generate -DarchetypeArtifactId=jboss-jsf-weld-servlet-webapp -DarchetypeGroupId=org.jboss.weld.archetypes -DarchetypeVersion=1.0.1.Beta1 -DarchetypeRepository=central -DartifactId=seam-expression-bug -DgroupId=org.seamframework.bug -Dversion=1.0 2 - Paste this code in src/main/java/org/seamframework/bug/Bugged.java : package org.seamframework.bug; import org.jboss.seam.solder.el.Expressions; public class Bugged Unknown macro: { @Inject Expressions expressions; } 3 - run mvn package

      Description

      I have an application dependent on seam-solder-impl for runtime and seam-solder-api for compile time, as specified below in pom.xml:

      <dependency>
      <groupId>org.jboss.seam.solder</groupId>
      <artifactId>seam-solder-impl</artifactId>
      <version>3.0.0.Final</version>
      <scope>runtime</scope>
      </dependency>

      <dependency>
      <groupId>org.jboss.seam.solder</groupId>
      <artifactId>seam-solder-api</artifactId>
      <version>3.0.0.Final</version>
      <scope>compile</scope>
      </dependency>

      I have this class in the project:

      package org.seamframework.bug;

      import org.jboss.seam.solder.el.Expressions;

      public class Bugged

      Unknown macro: { @Inject Expressions expressions; }

      When I run mvn package, I get this error:

      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] /Users/brandizzi/sandbox/seam-expression-bug/src/main/java/org/seamframework/bug/Bugged.java:[3,31] cannot find symbol
      symbol : class Expressions
      location: package org.jboss.seam.solder.el

      [ERROR] /Users/brandizzi/sandbox/seam-expression-bug/src/main/java/org/seamframework/bug/Bugged.java:[6,12] cannot find symbol
      symbol : class Expressions
      location: class org.seamframework.bug.Bugged

      [ERROR] /Users/brandizzi/sandbox/seam-expression-bug/src/main/java/org/seamframework/bug/Bugged.java:[6,5] cannot find symbol
      symbol : class Inject
      location: class org.seamframework.bug.Bugged

      [INFO] 3 errors

      This is unexpected because the documentation presents this bean (http://docs.jboss.org/seam/3/solder/latest/reference/en-US/html/elextensions.html), which makes it part of the interface of Solder.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                brandizzi Adam Victor Brandizzi
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: