Skip to content

Commit

Permalink
Support for Java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Ponomarenko committed Mar 3, 2015
1 parent 25fd2e4 commit 9499535
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions INSTALL
Expand Up @@ -9,8 +9,8 @@ All rights reserved.
RELEASE INFORMATION

Project: Java API Compliance Checker (Java ACC)
Version: 1.4.0
Date: 2015-01-10
Version: 1.4.1
Date: 2015-03-03


This file explains how to install and setup environment
Expand All @@ -29,15 +29,15 @@ Content:
1. REQUIREMENTS FOR LINUX, FREEBSD and MAC OS X
===============================================

1. JDK<=1.7 (javap, javac) - development files
1. JDK<=1.8 (javap, javac) - development files
2. Perl 5 (5.8 or newer)



2. REQUIREMENTS FOR MS WINDOWS
==============================

1. JDK<=1.7 (javap, javac)
1. JDK<=1.8 (javap, javac)
2. Active Perl 5 (5.8 or newer)


Expand Down
32 changes: 16 additions & 16 deletions japi-compliance-checker.pl
@@ -1,27 +1,27 @@
#!/usr/bin/perl
###########################################################################
# Java API Compliance Checker (Java ACC) 1.4.0
# Java API Compliance Checker (Java ACC) 1.4.1
# A tool for checking backward compatibility of a Java library API
#
# Written by Andrey Ponomarenko
# LinkedIn: http://www.linkedin.com/pub/andrey-ponomarenko/67/366/818
#
# Copyright (C) 2011 Institute for System Programming, RAS
# Copyright (C) 2011-2014 ROSA Laboratory
# Copyright (C) 2014-2015 Andrey Ponomarenko's ABI laboratory
#
# Written by Andrey Ponomarenko
# LinkedIn: http://www.linkedin.com/pub/andrey-ponomarenko/67/366/818
#
# PLATFORMS
# =========
# Linux, FreeBSD, Mac OS X, MS Windows
#
# REQUIREMENTS
# ============
# Linux, FreeBSD, Mac OS X
# - JDK<=1.7 (javap, javac) - development files
# - JDK<=1.8 (javap, javac) - development files
# - Perl 5 (5.8 or newer)
#
# MS Windows
# - JDK<=1.7 (javap, javac)
# - JDK<=1.8 (javap, javac)
# - Active Perl 5 (5.8 or newer)
#
# This program is free software: you can redistribute it and/or modify
Expand All @@ -46,7 +46,7 @@
use Data::Dumper;
use Config;

my $TOOL_VERSION = "1.4.0";
my $TOOL_VERSION = "1.4.1";
my $API_DUMP_VERSION = "1.0";
my $API_DUMP_MAJOR = majorVersion($API_DUMP_VERSION);

Expand Down Expand Up @@ -97,7 +97,7 @@

my $ShortUsage = "Java API Compliance Checker (Java ACC) $TOOL_VERSION
A tool for checking backward compatibility of a Java library API
Copyright (C) 2014 ROSA Laboratory
Copyright (C) 2015 Andrey Ponomarenko's ABI laboratory
License: GNU LGPL or GNU GPL
Usage: $CmdName [options]
Expand Down Expand Up @@ -6585,13 +6585,13 @@ ($$$)
}

# read the Signature
if($Content[$LineNum++]=~/Signature:\s*(.+)\Z/i)
if($Content[$LineNum++]=~/(Signature|descriptor):\s*(.+)\Z/i)
{ # create run-time unique name ( java/io/PrintStream.println (Ljava/lang/String;)V )
if($MethodAttr{"Constructor"}) {
$CurrentMethod = $CurrentClass.".\"<init>\":".$1;
$CurrentMethod = $CurrentClass.".\"<init>\":".$2;
}
else {
$CurrentMethod = $CurrentClass.".".$MethodAttr{"ShortName"}.":".$1;
$CurrentMethod = $CurrentClass.".".$MethodAttr{"ShortName"}.":".$2;
}
if(my $PackageName = get_SFormat($CurrentPackage)) {
$CurrentMethod = $PackageName."/".$CurrentMethod;
Expand Down Expand Up @@ -6640,9 +6640,9 @@ ($$$)
}
$TypeAttr{"Fields"}{$FName}{"Pos"} = $FieldPos++;
# read the Signature
if($Content[$LineNum++]=~/Signature:\s*(.+)\Z/i)
if($Content[$LineNum++]=~/(Signature|descriptor):\s*(.+)\Z/i)
{
my $FSignature = $1;
my $FSignature = $2;
if(my $PackageName = get_SFormat($CurrentPackage)) {
$TypeAttr{"Fields"}{$FName}{"Mangled"} = $PackageName."/".$CurrentClass.".".$FName.":".$FSignature;
}
Expand Down Expand Up @@ -7365,9 +7365,9 @@ ()
{
if(my $Ver = `$JavaCmd -version 2>&1`)
{
if($Ver=~/java version "(.+)\"/)
if($Ver=~/(java|openjdk) version "(.+)\"/)
{
$JAVA_VERSION = $1;
$JAVA_VERSION = $2;
printMsg("INFO", "using Java ".$JAVA_VERSION);
}
}
Expand Down Expand Up @@ -7604,7 +7604,7 @@ ()
}
if(defined $ShowVersion)
{
printMsg("INFO", "Java API Compliance Checker (Java ACC) $TOOL_VERSION\nCopyright (C) 2014 ROSA Laboratory\nLicense: LGPL or GPL <http://www.gnu.org/licenses/>\nThis program is free software: you can redistribute it and/or modify it.\n\nWritten by Andrey Ponomarenko.");
printMsg("INFO", "Java API Compliance Checker (Java ACC) $TOOL_VERSION\nCopyright (C) 2015 Andrey Ponomarenko's ABI laboratory\nLicense: LGPL or GPL <http://www.gnu.org/licenses/>\nThis program is free software: you can redistribute it and/or modify it.\n\nWritten by Andrey Ponomarenko.");
exit(0);
}
if(defined $DumpVersion)
Expand Down

0 comments on commit 9499535

Please sign in to comment.