Skip to content

Commit dded05f

Browse files
committed
CommandInfoTest: workaround for strange javac bug
Without this change, some javac versions fail with: [ERROR] /data/devel/jenkins-maven/workspace/SciJava-common/src/test/java/org/scijava/command/CommandInfoTest.java:[97,10] cannot find symbol symbol: class Plugin location: class org.scijava.command.CommandInfoTest [INFO] 1 error Notably, compilation fails on Ubuntu 12.04.5 LTS using: openjdk version "1.8.0_111" OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~12.04-b14) OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode) But works fine on macOS Sierra using: java version "1.8.0_112" Java(TM) SE Runtime Environment (build 1.8.0_112-b16) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b16, mixed mode)
1 parent 6088310 commit dded05f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/scijava/command/CommandInfoTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void testEnumParam() {
9494
// -- Helper classes --
9595

9696
/** A command with an enum parameter. */
97-
@Plugin(type = Command.class)
97+
@org.scijava.plugin.Plugin(type = Command.class)
9898
public static class CommandWithEnumParam implements Command {
9999

100100
public enum Choice {

0 commit comments

Comments
 (0)