Skip to content

Commit

Permalink
[CONJ-498] java 6 compatibility support - adding travis environment
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Jun 27, 2017
1 parent 82d13da commit ddbb34a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@ language: java
before_install:
- chmod +x .travis/before_test.sh
- chmod +x .travis/script.sh
# java 6 require maven 3.2.5
- wget http://mirrors.sonic.net/apache/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.tar.gz
- tar -zxf apache-maven-3.2.5-bin.tar.gz
- sudo cp -R apache-maven-3.2.5 /usr/local
- ls -lrt /usr/local/apache-maven-3.2.5/bin/
- sudo ln -fs /usr/local/apache-maven-3.2.5/bin/mvn /usr/local/bin/mvn
- mvn --version
- echo "MAVEN_OPTS='-Xmx384m'" > ~/.mavenrc
install: .travis/before_test.sh
dist: trusty
cache:
directories:
- $HOME/.m2
jdk:
- openjdk6
- oraclejdk7
- openjdk7
- oraclejdk8
env:
- AURORA=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,9 @@ public boolean sessionStateAware() {
}

public String getTraces() {
if (options.enablePacketDebug && traceCache != null) return traceCache.printStack();
synchronized(traceCache) {
if (options.enablePacketDebug && traceCache != null) return traceCache.printStack();
}
return "";
}
}

0 comments on commit ddbb34a

Please sign in to comment.