You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Jayaram Subramanian <rs...@gmail.com> on 2011/08/19 05:04:28 UTC

Build issue

Hi All,
When doing ant all, i suddenly ended up getting the following  issue.. Any
clues?

compilet1:
    [javac] Compiling 162 source files to C:\java\derby\source\trunk\classes
    [javac]
C:\java\derby\source\trunk\java\testing\org\apache\derbyTesting\func
tionTests\tests\store\RecoveryTest.java:92: cannot find symbol
    [javac] symbol  : method assertLaunchedJUnitTestMethod(java.lang.String)
    [javac] location: class
org.apache.derbyTesting.functionTests.tests.store.Re
coveryTest
    [javac]
assertLaunchedJUnitTestMethod("org.apache.derbyTesting.funct
ionTests.tests.store.RecoveryTest.launchRecoveryInsert");
    [javac]         ^
    [javac] 1 error


With Regards
Jayaram

Re: Build issue

Posted by Kathey Marsden <km...@sbcglobal.net>.
On 8/19/2011 4:37 AM, Jayaram Subramanian wrote:
> HI All,
> Yes there was  a conflict for basetestcase file and i did MC(My 
> conflict) as an option... Is that what caused the issue ?
Probably that is the issue. There is some conflict for which your 
changes took precedence and you lost the changes that were in trunk.    
At this point you'll probably want to fix things up manually.  If you 
have the subclipse plugin installed in eclipse, you can right click on 
the file and choose compare latest from repository. If you have a visual 
diff tool you can look at the diff this way.

svn cat -r HEAD BaseTestCase.java > BaseTestCase.java.HEAD
diff BaseTestCase.java BaseTestCase.java.HEAD

replacing "diff" with your visual difftool.

If your changes are not too extensive, sometimes it is easiest just to 
make a copy of your changed file, svn revert it and make the changes 
again manually.

When I have a conflict with svn update, I usually make a copy of my file 
and choose their conflict, just because I figure I will be able to 
better figure out what went wrong with my code and redo the change vs 
the code I am bringing in.

HTH

Kathey





Re: Build issue

Posted by Jayaram Subramanian <rs...@gmail.com>.
HI All,
Yes there was  a conflict for basetestcase file and i did MC(My conflict) as
an option... Is that what caused the issue ?

With Regards
Jayaram


On Fri, Aug 19, 2011 at 12:47 AM, Kathey Marsden <
kmarsdenderby@sbcglobal.net> wrote:

>  On 8/18/2011 8:04 PM, Jayaram Subramanian wrote:
>
> Hi All,
> When doing ant all, i suddenly ended up getting the following  issue.. Any
> clues?
>
> compilet1:
>     [javac] Compiling 162 source files to
> C:\java\derby\source\trunk\classes
>     [javac]
> C:\java\derby\source\trunk\java\testing\org\apache\derbyTesting\func
> tionTests\tests\store\RecoveryTest.java:92: cannot find symbol
>     [javac] symbol  : method
> assertLaunchedJUnitTestMethod(java.lang.String)
>     [javac] location: class
> org.apache.derbyTesting.functionTests.tests.store.Re
> coveryTest
>     [javac]
> assertLaunchedJUnitTestMethod("org.apache.derbyTesting.funct
> ionTests.tests.store.RecoveryTest.launchRecoveryInsert");
>     [javac]         ^
>     [javac] 1 error
>
>  Hi Jayaram,
>
> The method assertLaunchedJUnitTestMethod was added to BaseTestCase.java as
> part of the DERBY-4249 change. When you did an svn update you should have
> gotten the new version of this file or it should have merged with your
> changes if you are editing the same file unless you saw a conflict. Did you
> see a conflict when you did svn update?  If there was no conflict, perhaps
> also after svn update, you needed to do an ant clobber before rebuilding.
> If there was a conflict you should have been asked how you wished to handle
> it.
>
> Thanks
>
> Kathey
>
>
>
>
>

Re: Build issue

Posted by Kathey Marsden <km...@sbcglobal.net>.
On 8/18/2011 8:04 PM, Jayaram Subramanian wrote:
> Hi All,
> When doing ant all, i suddenly ended up getting the following  issue.. 
> Any clues?
>
> compilet1:
>     [javac] Compiling 162 source files to 
> C:\java\derby\source\trunk\classes
>     [javac] 
> C:\java\derby\source\trunk\java\testing\org\apache\derbyTesting\func
> tionTests\tests\store\RecoveryTest.java:92: cannot find symbol
>     [javac] symbol  : method 
> assertLaunchedJUnitTestMethod(java.lang.String)
>     [javac] location: class 
> org.apache.derbyTesting.functionTests.tests.store.Re 
> <http://org.apache.derbyTesting.functionTests.tests.store.Re>
> coveryTest
>     [javac]         
> assertLaunchedJUnitTestMethod("org.apache.derbyTesting.funct
> ionTests.tests.store.RecoveryTest.launchRecoveryInsert");
>     [javac]         ^
>     [javac] 1 error
>
Hi Jayaram,

The method assertLaunchedJUnitTestMethod was added to BaseTestCase.java 
as part of the DERBY-4249 change. When you did an svn update you should 
have gotten the new version of this file or it should have merged with 
your changes if you are editing the same file unless you saw a conflict. 
Did you see a conflict when you did svn update?  If there was no 
conflict, perhaps also after svn update, you needed to do an ant clobber 
before rebuilding.  If there was a conflict you should have been asked 
how you wished to handle it.

Thanks

Kathey