This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 255740 - Support dependency on Test Packages in java j2se projects
Summary: Support dependency on Test Packages in java j2se projects
Status: REOPENED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-06 15:02 UTC by ulfzibis
Modified: 2015-10-06 21:51 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
3 depending projects (132.31 KB, application/x-7z-compressed)
2015-10-06 15:17 UTC, ulfzibis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ulfzibis 2015-10-06 15:02:53 UTC
[ BUILD # : 201510012201 ]
[ JDK VERSION : 1.8.0_45 ]

STEPS:
   * Use attached projects
   * Open node Test Packages->de.CoSoCo.KVB.KomPruefStand
   * Compile Package

ACTUAL:
ant -f /home/ich/Projects/KVB/KomPrüfStand
-Djavac.includes=de/CoSoCo/KVB/KomPruefStand/*
-Dnb.internal.action.name=compile.single compile-test-single
init:
Deleting: /home/ich/Projects/KVB/KomPrüfStand/build/built-jar.properties
deps-jar:
Updating property file:
/home/ich/Projects/KVB/KomPrüfStand/build/built-jar.properties
CoSoCoUtil.init:
CoSoCoUtil.deps-jar:
Updating property file:
/home/ich/Projects/KVB/KomPrüfStand/build/built-jar.properties
CoSoCoUtil.compile:
CoSoCoUtil.jar:
TwinCAT.init:
TwinCAT.deps-jar:
Updating property file:
/home/ich/Projects/KVB/KomPrüfStand/build/built-jar.properties
TwinCAT.compile:
TwinCAT.jar:
compile:
Compiling 8 source files to
/home/ich/Projects/KVB/KomPrüfStand/build/test/classes
warning: [options] bootstrap class path not set in conjunction with -source 1.7
/home/ich/Projects/KVB/KomPrüfStand/test/de/CoSoCo/KVB/KomPruefStand/TestRahmen.
java:88: error: cannot find symbol
  private de.CoSoCo.Beckhoff.TwinCAT.ADSClientPanel adsClientPanel;
  symbol:   class ADSClientPanel
  location: package de.CoSoCo.Beckhoff.TwinCAT
/home/ich/Projects/KVB/KomPrüfStand/test/de/CoSoCo/KVB/KomPruefStand/TestRahmen.
java:89: error: cannot find symbol
  private de.CoSoCo.Beckhoff.TwinCAT.DevicePanel devicePanel;
  symbol:   class DevicePanel
  location: package de.CoSoCo.Beckhoff.TwinCAT
/home/ich/Projects/KVB/KomPrüfStand/test/de/CoSoCo/KVB/KomPruefStand/TestRahmen.
java:90: error: cannot find symbol
  private de.CoSoCo.Beckhoff.TwinCAT.IOPanel ioPanel;
  symbol:   class IOPanel
  location: package de.CoSoCo.Beckhoff.TwinCAT
/home/ich/Projects/KVB/KomPrüfStand/test/de/CoSoCo/KVB/KomPruefStand/TestRahmen.
java:91: error: cannot find symbol
  private de.CoSoCo.Beckhoff.TwinCAT.SPSPanel spsPanel;
  symbol:   class SPSPanel
  location: package de.CoSoCo.Beckhoff.TwinCAT
/home/ich/Projects/KVB/KomPrüfStand/test/de/CoSoCo/KVB/KomPruefStand/TestRahmen.
java:32: error: cannot find symbol
    adsClientPanel = new de.CoSoCo.Beckhoff.TwinCAT.ADSClientPanel();
  symbol:   class ADSClientPanel
  location: package de.CoSoCo.Beckhoff.TwinCAT
/home/ich/Projects/KVB/KomPrüfStand/test/de/CoSoCo/KVB/KomPruefStand/TestRahmen.
java:33: error: cannot find symbol
    devicePanel = new de.CoSoCo.Beckhoff.TwinCAT.DevicePanel();
  symbol:   class DevicePanel
  location: package de.CoSoCo.Beckhoff.TwinCAT
/home/ich/Projects/KVB/KomPrüfStand/test/de/CoSoCo/KVB/KomPruefStand/TestRahmen.
java:34: error: cannot find symbol
    ioPanel = new de.CoSoCo.Beckhoff.TwinCAT.IOPanel();
  symbol:   class IOPanel
  location: package de.CoSoCo.Beckhoff.TwinCAT
/home/ich/Projects/KVB/KomPrüfStand/test/de/CoSoCo/KVB/KomPruefStand/TestRahmen.
java:35: error: cannot find symbol
    spsPanel = new de.CoSoCo.Beckhoff.TwinCAT.SPSPanel();
  symbol:   class SPSPanel
  location: package de.CoSoCo.Beckhoff.TwinCAT
8 errors
1 warning
/home/ich/Projects/KVB/KomPrüfStand/nbproject/build-impl.xml:1289: The
following error occurred while executing this line:
/home/ich/Projects/KVB/KomPrüfStand/nbproject/build-impl.xml:269: Compile
failed; see the compiler error output for details.
BUILD FAILED (total time: 0 seconds)


EXPECTED:
   Should compile as in 8.1 Beta.
Comment 1 ulfzibis 2015-10-06 15:05:15 UTC
This build was shipped as RC1.
It worked in 8.1 Beta.
Comment 2 ulfzibis 2015-10-06 15:17:49 UTC
Created attachment 156563 [details]
3 depending projects
Comment 3 Tomas Zezula 2015-10-06 16:14:53 UTC
The test project does not work neither in NB 8.1 Beta.
The problem is that the tests of the KompPruefStand depends on the Beckhoff tests.
The java j2se project does not support dependency on tests. If you need it you need to add denendency on Folder Beckhoff/build/test/classes. When I did this it resolved the problem.
Comment 4 ulfzibis 2015-10-06 21:51:53 UTC
(In reply to Tomas Zezula from comment #3)
> The test project does not work neither in NB 8.1 Beta.
IIRC, I didn't see red error badges at Test Packages with NB 8.1 Beta, so I had no need to compile manually, but with NB 8.1 Beta I first noticed the red error badges.

> The java j2se project does not support dependency on tests. If you need it
> you need to add denendency on Folder Beckhoff/build/test/classes. When I did
> this it resolved the problem.
I did this before, but then I got unresolved dependencies after Clean & Build, see bug 246374 comment 7