jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-121) JCRTest.java (First Steps example code) creates a StringValue with "new"
Date Fri, 13 May 2005 08:30:25 GMT
     [ http://issues.apache.org/jira/browse/JCR-121?page=all ]
     
Marcel Reutegger resolved JCR-121:
----------------------------------

    Resolution: Fixed

Thanks for pointing out this issue.

At the same time I also adapted the project.properties and the project.xml to use the latest
version of jackrabbit.

Fixed in revision: 169980

> JCRTest.java (First Steps example code) creates a StringValue with "new"
> ------------------------------------------------------------------------
>
>          Key: JCR-121
>          URL: http://issues.apache.org/jira/browse/JCR-121
>      Project: Jackrabbit
>         Type: Bug
>   Components: docs
>     Reporter: Miro Walker
>     Assignee: Marcel Reutegger
>     Priority: Minor

>
> The JCRTest.java file described in the First Steps document (http://incubator.apache.org/jackrabbit/firststeps.html)
on the jackrabbit incubator website contains a line that attempts to create a StringValue
using new, rather than using the ValueFactory interface. This causes the code to fail to compile
- perhaps an initiative test, but could be off-putting...
> Simple fix is to swap the line:
>  n.setProperty("testprop", new StringValue("Hello, World."));
> to 
> n.setProperty("testprop", session.getValueFactory().createValue("Hello, World."));

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message